Author: cdupoirieux
Date: Fri Oct  6 08:32:30 2006
New Revision: 453640

URL: http://svn.apache.org/viewvc?view=rev&rev=453640
Log:
Add the ability to superseed a stylesheet of the plugin with a fallback 
mecanism.
(I have tested it to extend the plugin and it works like a charm...)

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/locationmap.xml

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/locationmap.xml
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/locationmap.xml?view=diff&rev=453640&r1=453639&r2=453640
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/locationmap.xml
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/locationmap.xml
 Fri Oct  6 08:32:30 2006
@@ -30,7 +30,23 @@
   </components>
   
   <locator>  
+    <!-- A project can to supersede the standard transform.odt.xhtml file to 
add specific feature.
+         The customised style sheet should be in 
{properties:resources}stylesheets/xslt/odt/odt_to_xhtml.xsl
+         to include the standard in the new stylesheet, just import the 
standard stylesheet has follows :
+           <xsl:import href="lm://std-transform.odt.xhtml"/>
+    -->
     <match pattern="transform.odt.xhtml">
+      <select type="exists">
+        <location 
+          src="{properties:resources}stylesheets/xslt/odt/odt_to_xhtml.xsl" 
+        />
+        <location 
+          src="{lm:std-transform.odt.xhtml}" 
+        />
+      </select>
+    </match>
+
+    <match pattern="std-transform.odt.xhtml">
       <select>
         <location 
           
src="{forrest:forrest.plugins}/org.apache.forrest.plugin.input.odt/resources/stylesheets/common/odt_to_xhtml.xsl"