A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/985.html
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
Parts
=====
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="http://www.w3.org/TR/xinclude">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)
href="include.txt"/></tt></li>
</ul>
+++ <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
like
+++ 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
effectively:</p>
(68 equal lines skipped)