You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cindy Girard <cl...@virginia.edu> on 2006/08/01 21:11:51 UTC

Re[2]: sitemap chaining

Thanks, Nicolas,
I think that did it!

ND> I'm not sure about the line <map:parameter
ND> name="use-request-parameters" value="true"/> in the "match part",
ND> I would put it in the "transformer part" :
ND>  
ND> [...]
ND> <map:transformer name="xsl" src="...."> 
ND>     <use-request-parameters>true</use-request-parameters> 
ND> </map:transformer>
ND> [...]
ND> <map:match pattern="utc_childrn_*.xml">
ND>       <map:generate type="file"
ND> src="xml/utc/media/childrn/{1}.xml"/>
ND>          <map:transform type="xslt"
ND> src="stylesheets/utc/hltest.xsl"/>
ND>          <map:transform type="xslt"
ND> src="stylesheets/utc/utc_display.xsl"/>
ND>       <map:serialize type="html"/>
ND>          <!-- map:serialize type="xml"/ -->
ND> </map:match>
ND>  
ND> I'm not sure this will solve your problem, but you can try :-)

ND>  
ND> 2006/8/1, Cindy Girard <cl...@virginia.edu>:
ND> Hi,

ND> I'm trying to use the cocoon sitemap to preprocess an XML file
ND> (using XSLT - an XML to XML transformation), then immediately use
ND> another XSLT stylesheet to transform the result to HTML. This is my
ND> pipeline match:


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


ND>     The first part is working (when I take out the utc_display.xsl
ND>     step), but when I add the utc_display transform, I get a blank
ND>     page. It starts to render it, because it uses the appropriate
ND>     background jpg, but no text comes out.

ND>     Is my sitemap wrong?

ND>     Any help would be appreciated.

ND>     Thanks,



ND> -----
ND> - Cindy

ND> Cynthia M. Girard
ND> IATH, University of Virginia
ND> clm6u@virginia.edu

ND> "Danger? I laugh in the face of danger!
ND> ...and then I hide until it goes away."


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








-- 
- Cindy 


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


Re: Re[2]: sitemap chaining

Posted by Nicolas Duroc <ni...@gmail.com>.
yeahhhhh, I helped someone, it's my first time !! wooOOooo !!

sorry for this totally useless message :-)


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