A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1290.html
Document ID: 1290 Branch: main Language: default Name: Your first XML pipeline (publishing) (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 5/28/07 12:25:34 PM Updated by: Reinhard Pötz A new version has been created, state: publish Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 8693 bytes (previous version: 8255 bytes) Content diff: (71 equal lines skipped) directory as the sitemap:</p> <pre><?xml version="1.0" encoding="UTF-8"?> --- <myFirstPipeline>test</myFirstPipeline> +++ <content>test</content> </pre> <p class="note">You might wonder why the matcher only has to look for the (38 equal lines skipped) <p>The XSLT file is very simple and creates an XML following the structure of XHTML (though without using any namespaces in order to keep things simple):</p> --- <pre>... [put the stylesheet here]</pre> +++ <pre><?xml version="1.0" encoding="UTF-8"?> +++ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +++ <xsl:template match="/"> +++ <html> +++ <head> +++ <title>My second XML Pipeline</title> +++ </head> +++ <body> +++ My second XML Pipeline: +++ <xsl:value-of select="/content"/> +++ </body> +++ </html> +++ </xsl:template> +++ </xsl:stylesheet></pre> <p>After saving the sitemap and the XSLT file, you can point you browser to <tt>http://localhost:8888/myBlock</tt><tt><tt>1</tt>/mySecondPipeline</tt> and (24 equal lines skipped) xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <map:pipelines> --- <map:pipeline> <map:match pattern="myFirstPipeline"> +++ <map:pipeline> +++ <map:match pattern="myFirstPipeline"> <map:generate src="myXmlFile.xml" type="file"/> <map:serialize type="xml"/> --- </map:match> <map:match pattern="mySecondPipeline"> +++ </map:match> +++ <map:match pattern="mySecondPipeline"> <map:generate src="myXmlFile.xml" type="file"/> <map:transform src="myXsltFile.xslt" type="xslt"/> <map:serialize type="html"/> --- </map:match> <strong><strong><strong> <map:match pattern="myThirdPipeline"> +++ </map:match> <strong><strong><strong> +++ <map:match pattern="myThirdPipeline"> <map:generate src="myXmlFile.xml" type="file"/> </strong></strong><strong><strong><strong><strong> <map:transform src="myXml2PdfFile.xslt" type="xslt"/></strong></strong></strong></strong> <strong><strong> <map:serialize type="fop"/> (36 equal lines skipped)