You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/01/13 15:10:44 UTC

svn commit: r368726 - in /forrest/trunk/plugins/org.apache.forrest.plugin.output.Text: locationmap.xml output.xmap resources/stylesheets/document-to-text.xsl resources/stylesheets/txt/document2txt.xsl

Author: rgardler
Date: Fri Jan 13 06:10:31 2006
New Revision: 368726

URL: http://svn.apache.org/viewcvs?rev=368726&view=rev
Log:
use locationmap (for-726)

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml   (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/document-to-text.xsl
      - copied, changed from r368705, forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/txt/document2txt.xsl
Removed:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/txt/document2txt.xsl
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/output.xmap

Added: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml?rev=368726&view=auto
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml Fri Jan 13 06:10:31 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2005 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
+
+  <components>
+    <matchers default="lm">
+      <matcher 
+        name="lm" 
+        src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
+    </matchers>
+    <selectors default="exists">
+          <selector name="exists" logger="sitemap.selector.exists"  
+                    src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+    </selectors>
+  </components>
+  
+  <locator>  
+    <match pattern="text.transform.*.*">
+        <location src="resources/stylesheets/{1}-to-{2}.xsl" />
+    </match>
+  </locator>
+</locationmap>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/locationmap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/output.xmap?rev=368726&r1=368725&r2=368726&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/output.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/output.xmap Fri Jan 13 06:10:31 2006
@@ -36,7 +36,7 @@
         <map:transform type="xinclude"/>
         <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.txt"/>
         <map:transform src="{lm:transform.html.broken-links}"/>
-        <map:transform src="resources/stylesheets/txt/document2txt.xsl">
+        <map:transform src="{lm:text.transform.document.text}">
             <map:parameter name="document-width" value="76"/>
         </map:transform>
         <map:serialize type="text"/>

Copied: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/document-to-text.xsl (from r368705, forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/txt/document2txt.xsl)
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/document-to-text.xsl?p2=forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/document-to-text.xsl&p1=forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/txt/document2txt.xsl&r1=368705&r2=368726&rev=368726&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/txt/document2txt.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/resources/stylesheets/document-to-text.xsl Fri Jan 13 06:10:31 2006
@@ -25,7 +25,7 @@
 <xsl:stylesheet version="1.0" 
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:import href="../common/text-templates.xsl"/>
+  <xsl:import href="common/text-templates.xsl"/>
 
   <xsl:param name="dynamic-page" select="'false'"/>  
   <xsl:param name="notoc"/>