You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by ri...@apache.org on 2004/11/28 20:12:02 UTC
svn commit: r106834 - /forrest/trunk/plugins/text-output/output.xmap /forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl
Author: rick
Date: Sun Nov 28 11:12:01 2004
New Revision: 106834
URL: http://svn.apache.org/viewcvs?view=rev&rev=106834
Log:
Change the document-width from an xsl:variable to an xsl:param. This
allows the document-width to be passed in from the map:transform element
in the output.xmap.
Could be used in the future to provide additional text output widths for
landscape (132).
Modified:
forrest/trunk/plugins/text-output/output.xmap
forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl
Modified: forrest/trunk/plugins/text-output/output.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/text-output/output.xmap?view=diff&rev=106834&p1=forrest/trunk/plugins/text-output/output.xmap&r1=106833&p2=forrest/trunk/plugins/text-output/output.xmap&r2=106834
==============================================================================
--- forrest/trunk/plugins/text-output/output.xmap (original)
+++ forrest/trunk/plugins/text-output/output.xmap Sun Nov 28 11:12:01 2004
@@ -36,7 +36,7 @@
<map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.txt"/>
<map:transform src="{forrest:context}/resources/stylesheets/declare-broken-site-links.xsl"/>
<map:transform src="{forrest:plugins}/text-output/resources/stylesheets/txt/document2txt.xsl">
- <map:parameter name="docname" value="{2}"/>
+ <map:parameter name="document-width" value="76"/>
</map:transform>
<map:serialize type="text"/>
</map:match>
Modified: forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl?view=diff&rev=106834&p1=forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl&r1=106833&p2=forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl&r2=106834
==============================================================================
--- forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl (original)
+++ forrest/trunk/plugins/text-output/resources/stylesheets/txt/document2txt.xsl Sun Nov 28 11:12:01 2004
@@ -29,9 +29,9 @@
<xsl:param name="dynamic-page" select="'false'"/>
<xsl:param name="notoc"/>
<xsl:param name="path"/>
+ <xsl:param name="document-width">76</xsl:param>
<xsl:variable name="indent-per-level">2</xsl:variable>
- <xsl:variable name="document-width">76</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="//document"/>