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: LinkRewriterTransformer
Date Wed, 10 Sep 2008 11:45:53 GMT
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 11:45:35 AM
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: 8057 bytes (previous version: 7916 bytes)
Content diff:
(13 equal lines skipped)
    another like this: <a href="aPage.html"> it could use <a
    href="site:aPage"&gt; where:</p>
    
--- <p>site is a URI "scheme"; a namespace that restricts the syntax and semantics
+++ <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". 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.</p>
+++ 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>
    
    <h3><strong>Example</strong></h3>
    
(96 equal lines skipped)
    <p>The following configuration entries in map:transformer block are recognised:
    </p>
    
--- <p>link-attrsSpace-separated list of attributes to consider links (to be
--- transformed). The whole value of the attribute is considered link and
--- transformed.link-attr0..n of these elements each specify an attribute containing
+++ <ul>
+++ <li>link-attrs - Space-separated list of attributes to consider links (to be
+++ transformed). The whole value of the attribute is considered a link and
+++ transformed.</li>
+++ <li>link-attr - 0..n of these elements each specify an attribute containing
    link(s) (to be transformed) and optionally a regular expression to locate
--- substring(s) of the attribute value considered link(s). Has two attributes:
--- name(required) name of the attribute whose value contains
--- link(s).pattern(optional) regular expression such that when matched against the
+++ substring(s) of the attribute value considered link(s). Has two attributes:</li>
+++ <ul>
+++ <li>name - (required) name of the attribute whose value contains link(s).</li>
+++ <li>pattern - (optional) regular expression such that when matched against the
    attribute value, all parenthesized expressions (except number 0) will be
    considered links that should be transformed. If absent, the whole value of the
    attribute is considered to be a link, as if the attribute was included in
--- 'link-attrs'. schemesSpace-separated list of URI schemes to explicitly include.
--- If specified, all URIs with unlisted schemes will <em>not</em> be
--- converted.exclude-schemesSpace-separated list of URI schemes to explicitly
--- exclude. Defaults to 'http https ftp news mailto'.bad-link-strString to use for
--- links with a correct InputModule prefix, but no value therein. Defaults to the
--- original URI.namespace-uriThe namespace uri of elements whose attributes are
--- considered for transformation. Defaults to the empty namespace ("").</p>
+++ 'link-attrs'.</li>
+++ </ul>
    
+++ <li>schemes - Space-separated list of URI schemes to explicitly include. If
+++ specified, all URIs with unlisted schemes will <em>not</em> be converted.</li>
+++ <li>exclude-schemes - Space-separated list of URI schemes to explicitly exclude.
+++ Defaults to 'http https ftp news mailto'.</li>
+++ <li>bad-link-str - String to use for links with a correct InputModule prefix,
+++ but no value therein. Defaults to the original URI.</li>
+++ <li>namespace-uri - The namespace uri of elements whose attributes are
+++ considered for transformation. Defaults to the empty namespace ("").</li>
+++ </ul>
+++ 
    <p>The attributes considered to contain links are a <em>set</em> of
the
    attributes specified in 'link-attrs' element and all 'link-attr' elements. Each
    attribute should be specified only once either in 'link-attrs' or 'link-attr';
(33 equal lines skipped)


Mime
View raw message