You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/04/04 08:13:07 UTC

svn commit: r159986 - forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap

Author: crossley
Date: Sun Apr  3 23:13:06 2005
New Revision: 159986

URL: http://svn.apache.org/viewcvs?view=rev&rev=159986
Log:
Beware the Cocoon Slash Trap.
Was not matching docs in sub-directories.

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap?view=diff&r1=159985&r2=159986
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap Sun Apr  3 23:13:06 2005
@@ -39,8 +39,8 @@
 
   <map:pipelines>
     <map:pipeline>
-      <map:match pattern="*.dtdx.xml">
-        <map:generate type="nekodtd" src="{forrest:context}/resources/schema/dtd/{1}.dtd">
+      <map:match type="regexp" pattern="^(.*?)([^/]*)\.dtdx\.xml$">
+        <map:generate type="nekodtd" src="{forrest:context}/resources/schema/dtd/{2}.dtd">
           <map:parameter name="config-class" value="org.cyberneko.dtd.DTDConfiguration" />
         </map:generate>
         <map:transform src="resources/stylesheets/dtdx2flat.xsl" />