You can write a source resolver that can then be used to import stylesheets.
However, I ran into the same problem you are having and we are writing a
generator to aggregate the parm data into the XML the stylesheet is
processing.

Ralph 

> -----Original Message-----
> From: Leszek Gawron [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2003 1:34 AM
> To: [EMAIL PROTECTED]
> Subject: access input modules from stylesheet
> 
> 
> Is there a way to acces input modules nicely from xslt 
> stylesheet? Right now I
> am doing something like: 
> 
> <map:transform 
> src="cocoon://{global:baseURL}/stylesheets/site2html.xsl">
>                               <map:parameter name="baseURL" 
> value="/{global:baseURL}"/>
>                               <map:parameter name="appTitle" 
> value="{global:appTitle}"/>
> </map:transfrom>
> 
> this is all fine if one has only one sitemap (one can use 
> resources to work
> with duplicated code) but I have a web application that each 
> app menu option
> (application section) has it's own sitemap.
> 
> The number of parameters passed to stylesheets gets bigger 
> and bigger with
> time which makes the code harder to read and maintain.
>       lg
> 
> 
> -- 
>             __
>          | /  \ |        Leszek Gawron            //  \\
>         \_\\  //_/       [EMAIL PROTECTED]           _\\()//_
>          .'/()\'.     Phone: +48(501)720812     / //  \\ \
>           \\  //  recursive: adj; see recursive  | \__/ |
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to