You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/15 16:03:29 UTC

svn commit: r595324 - /lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml

Author: andreas
Date: Thu Nov 15 07:03:28 2007
New Revision: 595324

URL: http://svn.apache.org/viewvc?rev=595324&view=rev
Log:
Added another proxy transformer example

Modified:
    lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml

Modified: lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml?rev=595324&r1=595323&r2=595324&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/2_0_x/reference/link-management.xml Thu Nov 15 07:03:28 2007
@@ -171,6 +171,8 @@
         </p>
         <p>
           The ProxyTransformer can be used to transform attribute values of elements in arbitrary namespaces.
+          It is recommended to declare a dedicated proxy transformer instance for each type of transformation,
+          for instance <em>proxy-xhtml</em> for XHTML documents and <em>proxy-rng</em> for Relax NG documents.
           For each namespace and element combination, you have to add a <code><![CDATA[<transform/>]]></code> element
           to the configuration. The following snippet shows the configuration to convert XHTML links. Beware
           that the XHTML document format supports various elements and attributes which can contain URLs, so
@@ -180,6 +182,13 @@
     src="org.apache.lenya.cms.cocoon.transformation.ProxyTransformer">
   <transform namespace="http://www.w3.org/1999/xhtml" element="a" attribute="href"/>
   ...
+</map:transformer>]]></source>
+        <p>
+          The next example declares a proxy transformer for Relax NG include statements:
+        </p>
+        <source xml:space="preserve"><![CDATA[<map:transformer name="proxy-rng" logger="lenya.sitemap.transformer.proxy"
+    src="org.apache.lenya.cms.cocoon.transformation.ProxyTransformer">
+  <transform namespace="http://relaxng.org/ns/structure/1.0" element="include" attribute="href"/>
 </map:transformer>]]></source>
       </section>
       <section>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org