cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@digitalinsight.com>
Subject RE: access input modules from stylesheet
Date Wed, 19 Nov 2003 18:00:07 GMT
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:ouzo@wlkp.org]
> Sent: Tuesday, November 18, 2003 1:34 AM
> To: users@cocoon.apache.org
> 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            //  \\
>         \_\\  //_/       ouzo@wlkp.org           _\\()//_
>          .'/()\'.     Phone: +48(501)720812     / //  \\ \
>           \\  //  recursive: adj; see recursive  | \__/ |
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

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


Mime
View raw message