cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r292379 - in /cocoon/blocks/linkrewriter/trunk/samples: samples.xml sitedemo-ns/ sitedemo-ns/linkmap.xml sitedemo-ns/sitemap.xmap
Date Thu, 29 Sep 2005 02:38:53 GMT
Author: crossley
Date: Wed Sep 28 19:38:48 2005
New Revision: 292379

URL: http://svn.apache.org/viewcvs?rev=292379&view=rev
Log:
Temporary demonstration of
Issue: 36810
"source that declares namespace fails JXPath/Linkrewriter/Input Modules"

Added:
    cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/
      - copied from r291381, cocoon/blocks/linkrewriter/trunk/samples/sitedemo/
Modified:
    cocoon/blocks/linkrewriter/trunk/samples/samples.xml
    cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/linkmap.xml
    cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/sitemap.xmap

Modified: cocoon/blocks/linkrewriter/trunk/samples/samples.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/linkrewriter/trunk/samples/samples.xml?rev=292379&r1=292378&r2=292379&view=diff
==============================================================================
--- cocoon/blocks/linkrewriter/trunk/samples/samples.xml (original)
+++ cocoon/blocks/linkrewriter/trunk/samples/samples.xml Wed Sep 28 19:38:48 2005
@@ -14,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<!-- CVS: $Id: samples.xml,v 1.7 2004/04/05 12:25:35 antonio Exp $ -->
+<!-- CVS: $Id$ -->
 <samples xmlns:xlink="http://www.w3.org/1999/xlink" name="LinkRewriter Block Samples">
   <group name="Back">
     <sample name="Back" href="../..">to Cocoon Samples main page</sample>
@@ -29,6 +29,10 @@
       href="sitedemo/foo/welcome">foo/welcome</link>, <link
       href="sitedemo/foo/bar/welcome">foo/bar/welcome</link> and watch the
       links change.
+    </sample>
+    <sample name="sitedemo-ns" href="sitedemo-ns/welcome">
+      Same as above, except using a namespace on the "site" element.
+      See Bugzilla: <link href="http://issues.apache.org/bugzilla/show_bug.cgi?id=36810">36810</link>
     </sample>
     <sample name="bookdemo" href="bookdemo/index.html">
       a demonstration of using a book.xml file to resolve links between pages.

Modified: cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/linkmap.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/linkmap.xml?rev=292379&r1=291381&r2=292379&view=diff
==============================================================================
--- cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/linkmap.xml (original)
+++ cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/linkmap.xml Wed Sep 28 19:38:48 2005
@@ -14,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<site href="">
+<site href="" xmlns="http://apache.org/cocoon/linkmap/1.0">
   <index href="index.html"/>
   <dreams href="dreams.html"/>
   <faq href="faq.html">

Modified: cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/sitemap.xmap?rev=292379&r1=291381&r2=292379&view=diff
==============================================================================
--- cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/sitemap.xmap (original)
+++ cocoon/blocks/linkrewriter/trunk/samples/sitedemo-ns/sitemap.xmap Wed Sep 28 19:38:48
2005
@@ -32,6 +32,7 @@
         </input-module>
         <prefix>/site/</prefix>
         <suffix>/@href</suffix>
+        <namespace-uri>http://apache.org/cocoon/linkmap/1.0</namespace-uri>
       </input-module>
     </map:transformer>
   </map:transformers>
@@ -51,6 +52,7 @@
        <!-- Uses {src} and {prefix} var interpolation -->
        <map:transform type="linkrewriter" src="cocoon:/{1}linkmap">
          <map:parameter name="prefix" value="/site/"/>
+         <map:parameter name="namespace-uri" value="http://apache.org/cocoon/linkmap/1.0"/>
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>



Mime
View raw message