You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nandakumar Mounasamy <ku...@yahoo.com> on 2004/10/19 00:09:26 UTC

xsl templates

When a xsl template is referenced in other stylesheets using xsl:import, is it physically expanded inside those importing stylesheets, at least in the processing view point? I like to understand the memory requirement with importing a xsl template into other templates.
 
Thanks

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Re: How can I pass http request parameters to template

Posted by "Volkm@r" <pl...@arcor.de>.
Art Spassky wrote:
> Hi all
> 
> I have a question to you
> 
> Is there elegant way to pass all parameters from http request to xslt stylesheet via cocoon
> 
> you help me a lot. thank you in advance.
> 
> Art.
> 
Did you read?
<http://cocoon.apache.org/2.1/userdocs/transformers/xslt-transformer.html>

<cite>
   The "use-request-parameters" and "use-browser-capabilities-db"
   configuration of a transformer can be changed for one single
   pipeline by specifying parameters with the same name:

   <map:transform src="stylesheet.xsl">
	<map:parameter name="use-request-parameters" value="true"/>
   </map:transform>
</cite>

And Art, please stop hijacking threads.
-- 
Volkmar W. Pogatzki


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: How can I pass http request parameters to template

Posted by Scott Yeadon <sc...@anu.edu.au>.
The sitemap allows access to request and session parameters via the 
session context, from which you could pass info to your stylesheets. See 
http://cocoon.apache.org/2.1/developing/webapps/contexts.html

Scott.

Art Spassky wrote:

> Hi all
>  
> I have a question to you
>  
> Is there elegant way to pass all parameters from http request to xslt 
> stylesheet via cocoon
>  
> you help me a lot. thank you in advance.
>  
> Art.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


How can I pass http request parameters to template

Posted by Art Spassky <ar...@dgma.donetsk.ua>.
Hi all

I have a question to you

Is there elegant way to pass all parameters from http request to xslt stylesheet via cocoon

you help me a lot. thank you in advance.

Art.

Re: xsl templates

Posted by Lars Huttar <la...@sil.org>.
Nandakumar Mounasamy wrote:

> When a xsl template is referenced in other stylesheets using 
> xsl:import, is it physically expanded inside those importing 
> stylesheets, at least in the processing view point? I like to 
> understand the memory requirement with importing a xsl template into 
> other templates.
>  
> Thanks
>
This is really an XSL question, which should go to an XSL mailing list. 
See http://www.mulberrytech.com/xsl/xsl-list/

But the answer is probably "it depends on the XSLT processor". It's not 
specified by the XSLT spec.
However it seems unlikely that a processor would physically expand an 
imported template. It's not a macro processor.

The surest answer would come from making a couple of test cases and 
running them using Cocoon/Xalan, assuming that's the environment you're 
planning to use.

Lars


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org