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: Views
Date Sat, 29 Sep 2007 15:30:56 GMT
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>&lt;map:views&gt;
     &lt;map:view name="content" from-label="content"&gt;
---  &lt;map:serialize type="xml"/&gt;
--- &lt;/map:view&gt;</pre>
+++    &lt;map:serialize type="xml"/&gt;
+++   &lt;/map:view&gt;
+++ &lt;/map:views&gt;
+++ </pre>
    
    <p>The next example performs an xslt transformation before serializing to xml.
    </p>
    
    <pre>&lt;map:views&gt;
     &lt;map:view name="dublin-core" from-label="dublin-core"&gt;
---  &lt;map:transform src="stylesheets/document2dublin-core.xsl"/&gt;
---  &lt;map:serialize type="xml"/&gt;
--- &lt;/map:view&gt;</pre>
+++    &lt;map:transform src="stylesheets/document2dublin-core.xsl"/&gt;
+++    &lt;map:serialize type="xml"/&gt;
+++   &lt;/map:view&gt;
+++ &lt;/map:views&gt;
+++ </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>&lt;map:views&gt;
     &lt;map:view name="full-document-content" from-position="last"&gt;
---  &lt;map:transform src="stylesheets/document2fo.xsl"/&gt;
---  &lt;map:serialize type="fo2pdf"/&gt;
--- &lt;/map:view&gt;</pre>
+++    &lt;map:transform src="stylesheets/document2fo.xsl"/&gt;
+++    &lt;map:serialize type="fo2pdf"/&gt;
+++   &lt;/map:view&gt;
+++ &lt;/map:views&gt;
+++ </pre>
    
    <h1>Placing Labels</h1>
    
(131 equal lines skipped)
    
    <pre>&lt;map:views&gt;
     &lt;map:view name="content" from-label="content"&gt;
---  &lt;map:serialize type="xml"/&gt;
--- &lt;/map:view&gt;</pre>
+++    &lt;map:serialize type="xml"/&gt;
+++   &lt;/map:view&gt;
+++ &lt;/map:views&gt;
+++ </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>&lt;map:components&gt;
--- 
     &lt;map:generators default="file"&gt;
      &lt;map:generator name="file"        
                     src="org.apache.cocoon.generation.FileGenerator"
(53 equal lines skipped)


Mime
View raw message