Sorry that should say green.xsl to fred.xml

Bobby Koya
[EMAIL PROTECTED]
http://www.newarkhall.co.uk

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 10 January 2002 13:03
To: [EMAIL PROTECTED]
Subject: New Users Tip

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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to