[DAISY] Updated: LinkRewriterTransformer
[email protected] Wed, 10 Sep 2008 12:13:53 +0000 (GMT+00:00)
| Newsgroups | gmane.text.xml.cocoon.documentation |
|---|---|
| Message-ID | <[email protected]> |
A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/1102.html
Document ID: 1102
Branch: main
Language: default
Name: LinkRewriterTransformer (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 9/10/08 12:13:51 PM
Updated by: David Legg
A new version has been created, state: draft
Parts
=====
Long description
----------------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 8513 bytes (previous version: 8057 bytes)
Content diff:
(14 equal lines skipped)
href="site:aPage"> where:</p>
<ul>
--- <li>site is a URI "scheme"; a namespace that restricts the syntax and semantics
--- of the rest of the URI. The semantics of "site" are "this identifier locates
--- something in the site's XML sources".</li>
--- <li>aPage identifies the content in aPage.xml by reference to a "node" of
+++ <li>site - is a URI "scheme"; a namespace that restricts the syntax and
+++ semantics of the rest of the URI. The semantics of "site" are "this identifier
+++ locates something in the site's XML sources".</li>
+++ <li>aPage - identifies the content in aPage.xml by reference to a "node" of
content declared in site.xml We call this indirect, or <em>semantic</em>
linking because instead of linking to a physical representation (aPage.html),
we've linked to the "idea" of "the aPage file". It doesn't matter where it
physically lives.</li>
</ul>
+++ <p>If that was all this transformer could do, it wouldn't be anything that you
+++ couldn't already do with an XSLT transformer and suitable stylesheet. The real
+++ power of the LinkRewriterTransformer occurs when it is combined with one or more
+++ <a href="http://cocoon.apache.org/2.1/userdocs/concepts/modules.html">InputModules</a>.
+++ This ability lets the LinkRewriterTransformer look up the new value of an
+++ attribute to be replaced at run time.</p>
+++
<h3><strong>Example</strong></h3>
<p>For instance, if we had an
(160 equal lines skipped)