forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: rev 56547 - forrest/trunk/plugins/simplified-docbook
Date Thu, 04 Nov 2004 01:18:35 GMT
Author: rgardler
Date: Wed Nov  3 17:18:34 2004
New Revision: 56547

Modified:
   forrest/trunk/plugins/simplified-docbook/sitemap.xmap
Log:
don't generate anything unless it really matches (Fixes FOR-348)

Modified: forrest/trunk/plugins/simplified-docbook/sitemap.xmap
==============================================================================
--- forrest/trunk/plugins/simplified-docbook/sitemap.xmap	(original)
+++ forrest/trunk/plugins/simplified-docbook/sitemap.xmap	Wed Nov  3 17:18:34 2004
@@ -42,25 +42,29 @@
     </map:selectors>
   </map:components>
   
-  <map:resources>
+  <map:resources>    
     <map:resource name="transform-to-document">
       <map:act type="sourcetype" src="{src}">
         <map:select type="parameter">
           <map:parameter name="parameter-selector-test" value="{sourcetype}" />
 
           <map:when test="docbook-v4.1.2">
+            <map:generate src="{project:content.xdocs}{1}.xml" />
             <map:transform src="{forrest:plugins}/simplified-docbook/resources/stylesheets/sdocbook2document.xsl"
/>
+            <map:serialize type="xml-document"/>
           </map:when>
           
           <map:when test="docbook-v4.2">
+            <map:generate src="{project:content.xdocs}{1}.xml" />
             <map:transform src="{forrest:plugins}/simplified-docbook/resources/stylesheets/sdocbook2document.xsl"
/>
+            <map:serialize type="xml-document"/>
           </map:when>
 
           <map:when test="sdocbook-v1.0">
+            <map:generate src="{project:content.xdocs}{1}.xml" />
             <map:transform src="{forrest:plugins}/simplified-docbook/resources/stylesheets/sdocbook2document.xsl"
/>
+            <map:serialize type="xml-document"/>
           </map:when>
-
-          <map:otherwise/>
         </map:select>
       </map:act>
     </map:resource>
@@ -69,11 +73,9 @@
   <map:pipelines>
     <map:pipeline internal="true">
       <map:match pattern="**.xml">
-          <map:generate src="{project:content.xdocs}{1}.xml" />
-          <map:call resource="transform-to-document">
-            <map:parameter name="src" value="{project:content.xdocs}{1}.xml" />
-          </map:call>
-          <map:serialize type="xml-document"/>
+        <map:call resource="transform-to-document">
+          <map:parameter name="src" value="{project:content.xdocs}{1}.xml" />
+        </map:call>
       </map:match>
     </map:pipeline>
   </map:pipelines>

Mime
View raw message