cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Duroc" <nicolas.du...@gmail.com>
Subject Re: sitemap chaining
Date Tue, 01 Aug 2006 18:20:05 GMT
I'm not sure about the line <map:parameter name="use-request-parameters"
value="true"/> in the "match part", I would put it in the "transformer part"
:

[...]
<map:transformer name="xsl" src="....">
    <use-request-parameters>true</use-request-parameters>
</map:transformer>
[...]
<map:match pattern="utc_childrn_*.xml">
      <map:generate type="file" src="xml/utc/media/childrn/{1}.xml"/>
         <map:transform type="xslt" src="stylesheets/utc/hltest.xsl"/>
         <map:transform type="xslt" src="stylesheets/utc/utc_display.xsl"/>
      <map:serialize type="html"/>
         <!-- map:serialize type="xml"/ -->
</map:match>

I'm not sure this will solve your problem, but you can try :-)


2006/8/1, Cindy Girard <clm6u@virginia.edu>:
>
> Hi,
>
> I'm trying to use the cocoon sitemap to preprocess an XML file
> (using XSLT - an XML to XML transformation), then immediately use
> another XSLT stylesheet to transform the result to HTML. This is my
> pipeline match:
>
>
>     <map:match pattern="utc_childrn_*.xml">
>       <map:generate type="file" src="xml/utc/media/childrn/{1}.xml"/>
>          <map:transform type="xslt" src="stylesheets/utc/hltest.xsl">
>          <map:parameter name="use-request-parameters" value="true"/>
>          </map:transform>
>          <map:transform type="xslt" src="stylesheets/utc/utc_display.xsl">
>          <map:parameter name="use-request-parameters" value="true"/>
>          </map:transform>
>       <map:serialize type="html"/>
>          <!-- map:serialize type="xml"/ -->
>     </map:match>
>
>
>     The first part is working (when I take out the utc_display.xsl
>     step), but when I add the utc_display transform, I get a blank
>     page. It starts to render it, because it uses the appropriate
>     background jpg, but no text comes out.
>
>     Is my sitemap wrong?
>
>     Any help would be appreciated.
>
>     Thanks,
>
>
>
> -----
> - Cindy
>
> Cynthia M. Girard
> IATH, University of Virginia
> clm6u@virginia.edu
>
> "Danger? I laugh in the face of danger!
> ...and then I hide until it goes away."
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Mime
View raw message