cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: XIncludeTransformer
Date Mon, 04 Jun 2007 20:37:39 GMT
A document has been updated:

Document ID: 985
Branch: main
Language: default
Name: XIncludeTransformer (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 6/4/07 8:37:26 PM
Updated by: Alexander Klimetschek

A new version has been created, state: publish


Long description
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 3392 bytes (previous version: 3073 bytes)
Content diff:
(5 equal lines skipped)
    <p>For more information refer to the
    <a href="">XInclude specification</a>.</p>
--- <ul>
--- <li>Name : xinclude</li>
--- <li>Class: org.apache.cocoon.transformation.XIncludeTransformer</li>
--- <li>Cacheable: yes.</li>
--- </ul>
    <p>You can include either simple text, or xml content. Including xml content --
    which is the default -- gives you the option to define an xpointer in the href
    attribute. Some quick xinclude examples should reveal the possibilities of
(8 equal lines skipped)
+++ <p>Note that the URL in the href attribute must be relative to the XML document.
+++ You can use any Cocoon source here, the <tt>file:</tt> protocol is standard
+++ in the examples above, but <tt>cocoon:</tt>, <tt>servlet:</tt>
and maybe your
+++ own custom excalibur source implementations will work as well. For example
+++ <tt>servlet:resources:/html-footer.html</tt> might include your standard footer
+++ located in a resources-block into your HTML page.</p>
    <p>A simple example using xinclude might help to use this transfomer
(68 equal lines skipped)

View raw message