You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2007/12/12 12:33:21 UTC

svn commit: r603571 - /forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml

Author: thorsten
Date: Wed Dec 12 03:33:19 2007
New Revision: 603571

URL: http://svn.apache.org/viewvc?rev=603571&view=rev
Log:
Adding a slimed down version of the locationmap

Added:
    forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml
      - copied, changed from r603561, forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml

Copied: forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml (from r603561, forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml)
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml?p2=forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml&p1=forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml&r1=603561&r2=603571&rev=603571&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml (original)
+++ forrest/trunk/whiteboard/cocoon-2.2-blocks/dispatcher/src/main/resources/COB-INF/locationmap.xml Wed Dec 12 03:33:19 2007
@@ -19,425 +19,227 @@
 <locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
   <components>
     <matchers default="lm">
-      <matcher name="lm" 
-                src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
+      <matcher name="lm"
+        src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
     </matchers>
     <actions default="RecursiveDirectoryTraversalAction">
-      <action name="RecursiveDirectoryTraversalAction" 
-                src="org.apache.forrest.dispatcher.acting.RecursiveDirectoryTraversalAction"/>
-      <action name="resourceTypeAction" 
-                src="org.apache.forrest.dispatcher.acting.ResourceTypeAction"/>
-      <action logger="sitemap.action.sourcetype" name="sourcetype" 
-                src="org.apache.forrest.sourcetype.SourceTypeAction">
-        <sourcetype name="document-v10">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Documentation V1.0//EN" />
-        </sourcetype>
-        <sourcetype name="howto-v10">
-          <document-declaration 
-                        public-id="-//APACHE//DTD How-to V1.0//EN" />
-        </sourcetype>
-        <sourcetype name="todo-v10">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Todo V1.0//EN" />
-        </sourcetype>
-        <sourcetype name="changes-v10">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Changes V1.0//EN" />
-        </sourcetype>
-        <sourcetype name="document-v11">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Documentation V1.1//EN" />
-        </sourcetype>
-        <sourcetype name="howto-v11">
-          <document-declaration 
-                        public-id="-//APACHE//DTD How-to V1.1//EN" />
-        </sourcetype>
-        <sourcetype name="todo-v11">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Todo V1.1//EN" />
-        </sourcetype>
-        <sourcetype name="changes-v11">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Changes V1.1//EN" />
-        </sourcetype>
-        <sourcetype name="todo-v12">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Todo V1.2//EN" />
-        </sourcetype>
-        <sourcetype name="changes-v12">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Changes V1.2//EN" />
-        </sourcetype>
-        <sourcetype name="howto-v12">
-          <document-declaration 
-                        public-id="-//APACHE//DTD How-to V1.2//EN" />
-        </sourcetype>
-        <sourcetype name="todo-v13">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Todo V1.3//EN" />
-        </sourcetype>
-        <sourcetype name="changes-v13">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Changes V1.3//EN" />
-        </sourcetype>
-        <sourcetype name="howto-v13">
-          <document-declaration 
-                        public-id="-//APACHE//DTD How-to V1.3//EN" />
-        </sourcetype>
-        <sourcetype name="document-v20a">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Documentation V2.0a//EN" />
-        </sourcetype>
-        <sourcetype name="document-v20">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Documentation V2.0//EN" />
-        </sourcetype>
-        <sourcetype name="todo-v20">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Todo V2.0//EN" />
-        </sourcetype>
-        <sourcetype name="changes-v20">
-          <document-declaration 
-                        public-id="-//APACHE//DTD Changes V2.0//EN" />
-        </sourcetype>
-        <sourcetype name="howto-v20">
-          <document-declaration 
-                        public-id="-//APACHE//DTD How-to V2.0//EN" />
-        </sourcetype>
-      </action>
+      <action name="RecursiveDirectoryTraversalAction"
+        src="org.apache.forrest.dispatcher.acting.RecursiveDirectoryTraversalAction"/>
+      <action name="resourceTypeAction"
+        src="org.apache.forrest.dispatcher.acting.ResourceTypeAction"/>
     </actions>
     <selectors default="exists">
-      <selector name="exists" logger="sitemap.selector.exists" 
-                src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+      <selector name="exists" logger="sitemap.selector.exists"
+        src="org.apache.forrest.sourceexists.SourceExistsSelector"/>
     </selectors>
   </components>
   <locator>
-    <match pattern="transform.project.text">
-      <location
-          src="{lm:dispatcher.home}/resources/stylesheets/project-to-text.xsl"/>
-    </match>
-<!-- Base location of the project themes-->
-    <match pattern="themer.project.dir">
-      <location src="{properties:resources}/themes" />
+    
+    <!-- DEMO -->
+    
+    <match pattern="demo">
+      <location src="{lm:dispatcher.home}locationmap.xml"/>
     </match>
-<!-- Base location of the builded dispatcher plugin-->
+    
+    <!-- Base location of the dispatcher-->
     <match pattern="dispatcher.home">
-      <location src="{properties:forrest.plugins}/{properties:dispatcher.home}" />
+      <location src="blockcontext:/dispatcher/"/>
     </match>
-<!-- Base location of the builded themer plugin-->
+    
+    <!-- Base location of the themer -->
     <match pattern="dispatcher.themer">
-      <location src="{properties:forrest.plugins}/{properties:dispatcher.themer}" />
+      <location src="{lm:dispatcher.home}resource/themer"/>
     </match>
-<!-- xhtml2 to html core transformation -->
-    <match pattern="transform.xhtml2.html.structurer">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/html/xhtml2_to_html.xsl" 
-            />
+    
+    <!-- contracts (e.g. html) that can be used in the project. -->
+    <match pattern="themer.contracts.dir">
+      <location src="{lm:dispatcher.themer}/themes" />
     </match>
-<!-- resource types -->
+    
+    <!-- resource types -->
     <match pattern="dispatcher.structurer.resourceType.**">
       <select>
-        <location 
-                    src="{properties:resources}/structurer/resource-types/{1}{properties:dispatcher.theme-ext}" 
-                    />
-        <location 
-                    src="{lm:dispatcher.themer}/structurer/resource-types/{1}{properties:dispatcher.theme-ext}" 
-                    />
-      </select>
-    </match>
-<!-- 
-      FIXME - Problem with the pattern
-      ********************************
-      We have encountered a strange problem with the pattern 'resolve.structurer.**'.
-      The {1} sometimes matches nothing, whereas {../1} is OK.
-      On the contrary, the {../1} sometimes matches nothing, whereas {1} is OK.
-      As a temporary workaround, we put {../1}{1} which covers all the cases.
-      CF. FOR-893
-      
-      structurer templating
-      *********************
-      URL specific structurer templates (project-based) e.g. index.fv
-      * either in the structurer/url
-      * or in the xdocs dir [deprecated]
-      have priority *before* 
-      
-      a) sourcetype based e.g. document-v20.fv
-      b) resourceTypeAction based on meta data e.g. xhtml.fv
-      (demonstrates lenya meta data integration for DOCO)
-      c) RecursiveDirectoryTraversalAction e.g. samples/common.fv
-      c1) url dir
-      c2) xdocs dir [deprecated]
-     
-      If no structurer template can be found in the project, 
-      we use either the templates provided by the
-      a) custom implementation of the themes.core plugin
-      b) themes.core plugin
-      where we test for 
-      1) {properties:dispatcher.theme}{properties:dispatcher.theme-ext}
-      2) {properties:dispatcher.fallback.theme}{properties:dispatcher.fallback.theme-ext}
-      -->
+        <location
+          src="{lm:project.themer}/structurer/resource-types/{1}{global:dispatcher.theme-ext}"/>
+        <location
+          src="{lm:dispatcher.themer}/structurer/resource-types/{1}{global:dispatcher.theme-ext}"/>
+      </select>
+    </match>
+    <!-- 
+    FIXME - Problem with the pattern
+    ********************************
+    We have encountered a strange problem with the pattern 'resolve.structurer.**'.
+    The {1} sometimes matches nothing, whereas {../1} is OK.
+    On the contrary, the {../1} sometimes matches nothing, whereas {1} is OK.
+    As a temporary workaround, we put {../1}{1} which covers all the cases.
+    CF. FOR-893
+    
+    structurer templating
+    *********************
+    URL specific structurer templates (project-based) e.g. index.fv
+    * either in the structurer/url
+    or via RecursiveDirectoryTraversalAction e.g. samples/common.fv
+    
+    If no structurer template can be found in the project, 
+    we use either the templates provided by the
+    a) custom implementation of the themes.core
+    b) themes.core
+    where we test for 
+    1) {global:dispatcher.theme}{global:dispatcher.theme-ext}
+    2) {global:dispatcher.fallback.theme}{global:dispatcher.fallback.theme-ext}
+    -->
     <match pattern="resolve.structurer.**">
       <select type="exists">
-<!-- project-based 
-          url-based (url location) -->
-        <location 
-                    src="{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}" 
-                    />
-        <act type="sourcetype" 
-                    src="{properties:content.xdocs}{1}.xml">
-<!-- Sourcetype based 
-          http://forrest.apache.org/docs/cap.html-->
-          <location 
-                        src="lm://dispatcher.structurer.resourceType.{sourcetype}" 
-                        />
-        </act>
-        <act type="resourceTypeAction">
-          <parameter value="{../1}{1}" name="request"/>
-          <parameter value="{properties:content.xdocs}" 
-                        name="projectDir"/>
-          <parameter value="lm://dispatcher.structurer.resourceType." 
-                        name="resourceTypeBase"/>
-          <parameter value=".xml.meta" name="metaExtension"/>
-          <parameter value="resourceType" name="resourceTypeElement"/>
-          <parameter 
-                        value="http://apache.org/cocoon/lenya/page-envelope/1.0" 
-                        name="resourceTypeElementNS"/>
-<!--  Meta data based -->
-          <location src="{uri}" />
-        </act>
+        <!-- project-based 
+        url-based (url location) -->
+        <location
+          src="{lm:project.themer}/structurer/url/{1}{global:dispatcher.theme-ext}"/>
         <act type="RecursiveDirectoryTraversalAction">
           <parameter value="{../1}{1}" name="request"/>
-          <parameter value="{properties:dispatcher.theme}" name="projectFallback"/>
-          <parameter value="{properties:dispatcher.theme-ext}" 
-                        name="projectExtension"/>
-          <parameter value="{properties:resources}structurer/url/" 
-                        name="projectDir"/>
-<!--  url
-            project-based theme-based = directory-based / parent-directory based (recursively) -->
-          <location src="{uri}" />
+          <parameter value="{global:dispatcher.theme}" name="projectFallback"/>
+          <parameter value="{global:dispatcher.theme-ext}"
+            name="projectExtension"/>
+          <parameter value="{lm:project.themer}/structurer/url/" name="projectDir"/>
+          <!--  url
+          project-based theme-based = directory-based / parent-directory based (recursively) -->
+          <location src="{uri}"/>
         </act>
-<!-- themes-dir: project-application-based theme-dir-based -->
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.theme}{properties:dispatcher.theme-ext}" 
-                    />
-<!-- themes-dir: project-application-based default -->
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.fallback.theme}{properties:dispatcher.fallback.theme-ext}" 
-                    />
-<!-- themer: forrest-application-based theme-based -->
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}{properties:dispatcher.theme-ext}" 
-                    />
-<!-- themer: forrest-application-based default -->
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}{properties:dispatcher.fallback.theme-ext}" 
-                    />
-      </select>
-    </match>
-<!-- Structurer panels - You can group elements to a template and call it from any view. -->
+        <!-- themes-dir: project-application-based theme-dir-based -->
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.theme}{global:dispatcher.theme-ext}"/>
+        <!-- themes-dir: project-application-based default -->
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.fallback.theme}{global:dispatcher.fallback.theme-ext}"/>
+        <!-- themer: forrest-application-based theme-based -->
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.theme}{global:dispatcher.theme-ext}"/>
+        <!-- themer: forrest-application-based default -->
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}{global:dispatcher.fallback.theme-ext}"/>
+      </select>
+    </match>
+    
+    
+    <!-- Structurer panels - You can group elements to a template and call it from any structurer. -->
     <match pattern="resolve.panels.**">
       <select type="exists">
-        <location 
-                    src="{properties:resources}/themes/{properties:dispatcher.theme}/panels/{1}.panel.xml" 
-                    />
-        <location 
-                    src="{properties:resources}/themes/{properties:dispatcher.fallback.theme}/panels/{1}.panel.xml" 
-                    />
-<!--  plugin provided panels -->
-        <location src="{lm:resolvePluginPanels.{1}}" />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/panels/{1}.panel.xml" 
-                    />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/panels/{1}.panel.xml" 
-                    />
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.theme}/panels/{1}{global:dispatcher.panel.ext}"/>
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.fallback.theme}/panels/{1}{global:dispatcher.panel.ext}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.theme}/panels/{1}{global:dispatcher.panel.ext}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}/panels/{1}{global:dispatcher.panel.ext}"/>
       </select>
     </match>
-<!-- Some input need to be striped by their root element. -->
+    <!-- Some input need to be striped by their root element. -->
     <match pattern="root-strip.xsl">
       <select type="exists">
-        <location 
-                    src="{lm:dispatcher.home}/resources/stylesheets/root-strip.xsl" 
-                    />
+        <location
+          src="{lm:dispatcher.home}resource/stylesheets/root-strip.xsl"/>
       </select>
     </match>
-<!-- Next coming from themer -->
-<!-- Project implementation of templates have priority before default ones.
-        If no implementation can be found we use the noFt (~ - no forrest:template) implementation.  
-       {1} name of the contract -->
+    <!-- Project implementation of templates have priority before default ones.
+    If no implementation can be found we use the noFt (~ - no forrest:template) implementation.  
+    {1} name of the contract -->
     <match pattern="resolve.contract.*.**">
       <select type="exists">
-<!-- project-based theme -->
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.theme}/{1}/{2}.ft" />
-<!-- project-based default fallback -->
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.fallback.theme}/{1}/{2}.ft" />
-<!--  plugin provided contracts -->
-        <location src="{lm:resolvePluginContract.{1}.{2}}" />
-<!-- forrest-application-based theme -->
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/{1}/{2}.ft" />
-        <location 
-                    src="{properties:forrest.plugins}/org.apache.forrest.themes.core/themes/common/{1}/{2}.ft" 
-                    />
-<!--  forrest-application-based default fallback -->
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.ft" 
-                    />
-<!--  forrest-application-based no found -->
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/{1}/noFt.ft" 
-                    />
-      </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="{properties:resources}stylesheets/xslt/xml/document-to-{1}.xsl" 
-                    />
-        <location 
-                    src="{lm:std-dataModel-xml-document-to-{1}.xsl}" 
-                    />
+        <!-- project-based theme -->
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.theme}/{1}/{2}{global:dispatcher.contract.ext}"/>
+        <!-- project-based default fallback -->
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.fallback.theme}/{1}/{2}{global:dispatcher.contract.ext}"/>
+        <!-- forrest-application-based theme -->
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.theme}/{1}/{2}{global:dispatcher.contract.ext}"/>
+        <!--  forrest-application-based default fallback -->
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}/{1}/{2}{global:dispatcher.contract.ext}"/>
+        <!--  forrest-application-based no found -->
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}/{1}/noFt{global:dispatcher.contract.ext}"/>
       </select>
     </match>
-    <match pattern="dataModel-html-**.xsl">
-      <select type="exists">
-        <location 
-                    src="{properties: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. -->
+    <!-- contracts have to be striped to their stylesheet for aggregation. -->
     <match pattern="contract-strip-xsl.xsl">
       <select type="exists">
-        <location 
-                    src="{lm:dispatcher.home}/resources/stylesheets/contract-strip-xsl.xsl" 
-                    />
+        <location
+          src="{lm:dispatcher.home}resource/stylesheets/contract-strip-xsl.xsl"/>
       </select>
     </match>
-    <match pattern="hooks-to-**.xsl">
+    <match pattern="hooks-to-*.xsl">
       <select type="exists">
-        <location 
-                    src="{lm:dispatcher.home}/resources/stylesheets/{1}/hooksMatcher.xsl" 
-                    />
+        <location
+          src="{lm:dispatcher.home}resource/stylesheets/{0}"/>
       </select>
     </match>
     <match pattern="strip-dispatcher-remains-**.xsl">
       <select type="exists">
-        <location 
-                    src="{lm:dispatcher.home}/resources/stylesheets/{1}/strip-dispatcher-remains.xsl" 
-                    />
+        <location
+          src="{lm:dispatcher.home}resource/stylesheets/{0}"/>
       </select>
     </match>
-<!-- contracts (e.g. html) that can be used in the project. -->
+    <!-- contracts (e.g. html) that can be used in the project. -->
     <match pattern="ls.contracts.xsl">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/ls.contracts.xsl" />
+      <location
+        src="{lm:dispatcher.home}resource/stylesheets/ls.contracts.xsl"/>
     </match>
     <match pattern="ls.contracts-to-document.xsl">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/ls.contracts-to-document.xsl" 
-            />
-    </match>
-<!--Theme dir-->
-    <match pattern="themer.project.dir">
-      <select type="exists">
-        <location src="{properties:resources}themes"/>
-<!-- v1 location -->
-        <location src="{properties:resources}templates" />
-      </select>
-    </match>
-<!-- contracts (e.g. html) that can be used in the project. -->
-    <match pattern="themer.contracts.dir">
-      <location src="{lm:dispatcher.themer}/themes" />
+      <location
+        src="{lm:dispatcher.home}resource/stylesheets/ls.contracts-to-document.xsl"/>
     </match>
-<!-- generic match for theme image resources -->
-<!-- 
-      {1} name
-      {2} extension (note we assume e.g. {1}.gif)
-      -->
+    <!-- generic match for theme image resource -->
+    <!-- 
+    {1} name
+    {2} extension (note we assume e.g. {1}.gif)
+    -->
     <match pattern="themes/images/**.*">
       <select type="exists">
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.theme}/images/{1}.{2}" 
-                    />
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.fallback.theme}/images/{1}.{2}" 
-                    />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/images/{1}.{2}" 
-                    />
-        <location 
-                    src="{properties:forrest.plugins}/org.apache.forrest.themes.core/themes/common/images/{1}.{2}" 
-                    />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/images/{1}.{2}" 
-                    />
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.theme}/images/{1}.{2}"/>
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.fallback.theme}/images/{1}.{2}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.theme}/images/{1}.{2}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}/images/{1}.{2}"/>
       </select>
     </match>
-<!-- generic match for theme resources like css and js. -->
-<!-- 
-      {1} name
-      {2} extension (note we assume e.g. PATH/css/{1}.css)
-      -->
+    <!-- generic match for theme resource like css and js. -->
+    <!-- 
+    {1} name
+    {2} extension (note we assume e.g. PATH/css/{1}.css)
+    -->
     <match pattern="themes/**.*">
       <select type="exists">
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.theme}/{2}/{1}.{2}" />
-        <location 
-                    src="{lm:themer.project.dir}/{properties:dispatcher.fallback.theme}/{2}/{1}.{2}" 
-                    />
-<!--  plugin provided contracts -->
-        <location src="{lm:resolvePluginThemes.{2}.{1}}" />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/{2}/{1}.{2}" 
-                    />
-        <location 
-                    src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/{2}/{1}.{2}" 
-                    />
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.theme}/{2}/{1}.{2}"/>
+        <location
+          src="{lm:project.themer}/themes/{global:dispatcher.fallback.theme}/{2}/{1}.{2}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.theme}/{2}/{1}.{2}"/>
+        <location
+          src="{lm:dispatcher.themer}/themes/{global:dispatcher.fallback.theme}/{2}/{1}.{2}"/>
       </select>
     </match>
-<!--  Extracts the style sheet from the contract.  -->
+    <!--  Extracts the style sheet from the contract.  -->
     <match pattern="contract-strip-xsl.xsl">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/helper/contract-strip-xsl.xsl" 
-            />
+      <location
+        src="{lm:dispatcher.home}resource/stylesheets/contract-strip-xsl.xsl"/>
     </match>
     <match pattern="transform.xml.variable.helper">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/helper/variable.helper.xsl" 
-            />
+      <location
+        src="{lm:dispatcher.home}resource/stylesheets/variable.helper.xsl"/>
     </match>
-<!-- Id generation -->
+    <!-- Id generation -->
     <match pattern="generateId.xsl">
-      <location 
-            src="{lm:dispatcher.home}/resources/stylesheets/helper/generateId.xsl" 
-            />
+      <location
+        src="{lm:dispatcher.home}resource/stylesheets/generateId.xsl"/>
+    </match>
+    <match pattern="namespace-stripped">
+      <location src="{lm:dispatcher.home}resource/stylesheets/strip_namespaces.xsl"/>
     </match>
   </locator>
 </locationmap>