forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r429653 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml
Date Tue, 08 Aug 2006 13:41:28 GMT
Author: cdupoirieux
Date: Tue Aug  8 06:41:28 2006
New Revision: 429653

URL: http://svn.apache.org/viewvc?rev=429653&view=rev
Log:
Suppress the skins-dir location reference for the dataModel
Replace by a project resources based location
Add the ability (and explain it comments) how to customise the dataModel stylesheets.
(Cf. http://marc.theaimsgroup.com/?l=forrest-dev&m=114564594832415&w=2)

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml?rev=429653&r1=429652&r2=429653&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml
Tue Aug  8 06:41:28 2006
@@ -294,26 +294,48 @@
                     />
             </select>
         </match>
+
+        <!-- dataModel -->
+        <!-- A project can to supersede the standard <format>-to-<format>.xsl
file to add specific feature.
+             to include the standard in the new stylesheet, just import the standard stylesheet
has follows :
+                <xsl:import href="lm://std-dataModel-xml-document-to-<format>.xsl"/>
+             or <xsl:import href="lm://std-dataModel-html-<format>-to-<format>.xsl"/>
+        -->
         <match pattern="dataModel-xml-document-to-**.xsl">
             <select type="exists">
                 <location 
-                    src="{project:skins-dir}{project:dispatcher.theme}/xslt/xml/document-to-{1}.xsl"

+                    src="{project:resources}stylesheets/xslt/xml/document-to-{1}.xsl" 
                     />
                 <location 
-                    src="{lm:dispatcher.home}/resources/stylesheets/xml/document-to-{1}.xsl"

+                    src="{lm:std-dataModel-xml-document-to-{1}.xsl}" 
                     />
             </select>
         </match>
         <match pattern="dataModel-html-**.xsl">
             <select type="exists">
                 <location 
-                    src="{project:skins-dir}{project:dispatcher.theme}/xslt/html/{1}.xsl"

+                    src="{project:resources}stylesheets/xslt/html/{1}.xsl" 
+                    />
+                <location 
+                    src="{lm:std-dataModel-html-{1}.xsl}" 
                     />
+            </select>
+        </match>
+        <match pattern="std-dataModel-html-**.xsl">
+            <select type="exists">
                 <location 
                     src="{lm:dispatcher.home}/resources/stylesheets/html/{1}.xsl" 
                     />
             </select>
         </match>
+        <match pattern="std-dataModel-xml-document-to-**.xsl">
+            <select type="exists">
+                <location 
+                    src="{lm:dispatcher.home}/resources/stylesheets/xml/document-to-{1}.xsl"

+                    />
+            </select>
+        </match>
+
         <!-- contracts have to be striped to their stylesheet for aggregation. -->
         <match pattern="contract-strip-xsl.xsl">
             <select type="exists">



Mime
View raw message