cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Your first XML pipeline (publishing)
Date Mon, 28 May 2007 12:25:56 GMT
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>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
--- &lt;myFirstPipeline&gt;test&lt;/myFirstPipeline&gt;
+++ &lt;content&gt;test&lt;/content&gt;
    </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>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+++ &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
+++   &lt;xsl:template match="/"&gt;
+++     &lt;html&gt;
+++       &lt;head&gt;
+++         &lt;title&gt;My second XML Pipeline&lt;/title&gt;
+++       &lt;/head&gt;
+++       &lt;body&gt;
+++         My second XML Pipeline:
+++         &lt;xsl:value-of select="/content"/&gt;
+++       &lt;/body&gt;
+++     &lt;/html&gt;
+++   &lt;/xsl:template&gt;
+++ &lt;/xsl:stylesheet&gt;</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"&gt;
    
      &lt;map:pipelines&gt;
---     &lt;map:pipeline&gt;       &lt;map:match pattern="myFirstPipeline"&gt;
+++     &lt;map:pipeline&gt;       
+++       &lt;map:match pattern="myFirstPipeline"&gt;
            &lt;map:generate src="myXmlFile.xml" type="file"/&gt;
            &lt;map:serialize type="xml"/&gt;
---       &lt;/map:match&gt;       &lt;map:match pattern="mySecondPipeline"&gt;
+++       &lt;/map:match&gt;       
+++       &lt;map:match pattern="mySecondPipeline"&gt;
            &lt;map:generate src="myXmlFile.xml" type="file"/&gt;
            &lt;map:transform src="myXsltFile.xslt" type="xslt"/&gt;
            &lt;map:serialize type="html"/&gt;
---       &lt;/map:match&gt; <strong><strong><strong>      &lt;map:match
pattern="myThirdPipeline"&gt;
+++       &lt;/map:match&gt; <strong><strong><strong>      
+++       &lt;map:match pattern="myThirdPipeline"&gt;
            &lt;map:generate src="myXmlFile.xml" type="file"/&gt;
    </strong></strong><strong><strong><strong><strong>
       &lt;map:transform src="myXml2PdfFile.xslt" type="xslt"/&gt;</strong></strong></strong></strong>
    <strong><strong>        &lt;map:serialize type="fop"/&gt;
(36 equal lines skipped)


Mime
View raw message