forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r159986 - forrest/trunk/plugins/org.apache.forrest.plugin.dtdx-input/input.xmap
Date Mon, 04 Apr 2005 06:13:07 GMT
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" />



Mime
View raw message