Author: crossley
Date: Sat Apr  1 22:25:47 2006
New Revision: 390786

URL: http://svn.apache.org/viewcvs?rev=390786&view=rev
Log:
Support old behaviour to match **-locations.xml and to
enable processing of xml instances with no document type declaration.

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

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/input.xmap
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/input.xmap?rev=390786&r1=390785&r2=390786&view=diff
==============================================================================
--- 
forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/input.xmap 
(original)
+++ 
forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/input.xmap 
Sat Apr  1 22:25:47 2006
@@ -63,10 +63,20 @@
 
   <map:pipelines>
     <map:pipeline internal="true">
+      <!-- Use the SourceType Action in preference -->
       <map:match pattern="**.xml">
         <map:call resource="transform-to-document">
           <map:parameter name="src" value="{lm:project.{1}.xml}" />
         </map:call>
+      </map:match>
+
+      <!-- Support old behaviour to match **-locations.xml and to
+        enable processing of xml instances with no document type declaration.
+      -->
+      <map:match type="regexp" pattern="^(.*?)([^/]*)locations.xml$">
+        <map:generate type="file" src="{lm:project.{1}{2}locations.xml}"/>
+        <map:transform src="{lm:listLocations.transform.locations.document}"/>
+        <map:serialize type="xml-document"/>
       </map:match>
     </map:pipeline>
   </map:pipelines>