You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2004/04/22 12:19:59 UTC
svn commit: rev 10170 - in xml/forrest/branches/copyless/src/core/context/skins/common/xslt: fo html svg
Author: nicolaken
Date: Thu Apr 22 03:19:57 2004
New Revision: 10170
Modified:
xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/document2fo.xsl
xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/footerinfo.xsl
xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/document2html.xsl
xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/site2xhtml.xsl
xml/forrest/branches/copyless/src/core/context/skins/common/xslt/svg/document2svg.xsl
Log:
Use a better method to get the skinconf in the xml, so that skins that use the old $config variable remain compatible. I love these hacks :-)
Modified: xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/document2fo.xsl
==============================================================================
--- xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/document2fo.xsl (original)
+++ xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/document2fo.xsl Thu Apr 22 03:19:57 2004
@@ -20,8 +20,7 @@
version="1.0">
<!-- the skinconf file -->
- <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
- <xsl:variable name="config" select="document($config-file)/skinconfig"/>
+ <xsl:variable name="config" select="//skinconfig"/>
<!-- Get the section depth to use when generating the minitoc (default is 2) -->
<xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>
Modified: xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/footerinfo.xsl
==============================================================================
--- xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/footerinfo.xsl (original)
+++ xml/forrest/branches/copyless/src/core/context/skins/common/xslt/fo/footerinfo.xsl Thu Apr 22 03:19:57 2004
@@ -29,8 +29,7 @@
</credit>
-->
- <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
- <xsl:variable name="config" select="document($config-file)/skinconfig"/>
+ <xsl:variable name="config" select="//skinconfig"/>
<xsl:template name="info">
<xsl:variable name="pdfcredit" select="$config/credits/credit[@role = 'pdf']"/>
Modified: xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/document2html.xsl
==============================================================================
--- xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/document2html.xsl (original)
+++ xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/document2html.xsl Thu Apr 22 03:19:57 2004
@@ -33,6 +33,9 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <!-- the skinconf file -->
+ <xsl:variable name="config" select="//skinconfig"/>
+
<!-- If true, a PDF link for this page will not be generated -->
<xsl:variable name="disable-pdf-link" select="//skinconfig/disable-pdf-link"/>
<!-- If true, a "print" link for this page will not be generated -->
Modified: xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/site2xhtml.xsl
==============================================================================
--- xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/site2xhtml.xsl (original)
+++ xml/forrest/branches/copyless/src/core/context/skins/common/xslt/html/site2xhtml.xsl Thu Apr 22 03:19:57 2004
@@ -36,6 +36,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:variable name="config" select="//skinconfig"/>
<xsl:param name="path"/>
<xsl:include href="dotdots.xsl"/>
Modified: xml/forrest/branches/copyless/src/core/context/skins/common/xslt/svg/document2svg.xsl
==============================================================================
--- xml/forrest/branches/copyless/src/core/context/skins/common/xslt/svg/document2svg.xsl (original)
+++ xml/forrest/branches/copyless/src/core/context/skins/common/xslt/svg/document2svg.xsl Thu Apr 22 03:19:57 2004
@@ -18,8 +18,7 @@
<xsl:output method="xml" media-type="image/svg" omit-xml-declaration="yes" indent="yes"/>
<!-- the skinconf file -->
- <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
- <xsl:variable name="config" select="document($config-file)/skinconfig"/>
+ <xsl:variable name="config" select="//skinconfig"/>
<!-- Get the section depth to use when generating the minitoc (default is 2) -->
<xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>