cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sxk...@Cs.Nott.AC.UK
Subject New Users Tip
Date Thu, 10 Jan 2002 13:03:28 GMT
I came across something useful today that new users of C2 maybe
interested in:

In the sitemap define the following pipeline
   <map:match pattern="*.*">
    <map:generate src="folder/{1}.xml"/>
    <map:transform src="folder/{2}.xsl"/>
    <map:serialize type="html"/>
   </map:match>

This will allow you to type in what ever XML file you want to be
processed by what ever XSL file you want. 

Eg: http://localhost:8080/fred.green

This will apply green.xsl to fred.xsl 

Bobby Koya



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message