A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1374.html
Document ID: 1374 Branch: main Language: default Name: Views (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 9/29/07 3:30:52 PM Updated by: Vadim Gritsenko A new version has been created, state: publish Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 11157 bytes (previous version: 11058 bytes) Content diff: (70 equal lines skipped) <pre><map:views> <map:view name="content" from-label="content"> --- <map:serialize type="xml"/> --- </map:view></pre> +++ <map:serialize type="xml"/> +++ </map:view> +++ </map:views> +++ </pre> <p>The next example performs an xslt transformation before serializing to xml. </p> <pre><map:views> <map:view name="dublin-core" from-label="dublin-core"> --- <map:transform src="stylesheets/document2dublin-core.xsl"/> --- <map:serialize type="xml"/> --- </map:view></pre> +++ <map:transform src="stylesheets/document2dublin-core.xsl"/> +++ <map:serialize type="xml"/> +++ </map:view> +++ </map:views> +++ </pre> <p>The last example defines a view specifying the position-from attribute "last", and serializing to pdf, for a pdf-aware only indexer, or archiver.</p> <pre><map:views> <map:view name="full-document-content" from-position="last"> --- <map:transform src="stylesheets/document2fo.xsl"/> --- <map:serialize type="fo2pdf"/> --- </map:view></pre> +++ <map:transform src="stylesheets/document2fo.xsl"/> +++ <map:serialize type="fo2pdf"/> +++ </map:view> +++ </map:views> +++ </pre> <h1>Placing Labels</h1> (131 equal lines skipped) <pre><map:views> <map:view name="content" from-label="content"> --- <map:serialize type="xml"/> --- </map:view></pre> +++ <map:serialize type="xml"/> +++ </map:view> +++ </map:views> +++ </pre> <p>It only defines what processing steps should be taken, after some exit point labelled "content" is reached. In all this case just a serializer is used to (5 equal lines skipped) defined components show this:</p> <pre><map:components> --- <map:generators default="file"> <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator" (53 equal lines skipped)