You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ch...@apache.org on 2004/04/28 23:11:11 UTC

svn commit: rev 10375 - in xml/forrest/trunk/src/core/context/skins/common/xslt: fo svg

Author: cheche
Date: Wed Apr 28 14:11:10 2004
New Revision: 10375

Modified:
   xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl
   xml/forrest/trunk/src/core/context/skins/common/xslt/fo/footerinfo.xsl
   xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl
Log:
//skinconfig is not valid in this context
The aggregation on cocoon:skinconf.xml is just for *.html


Modified: xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl	Wed Apr 28 14:11:10 2004
@@ -20,7 +20,8 @@
                 version="1.0">
 
   <!-- the skinconf file -->
-  <xsl:variable name="config" select="//skinconfig"/>
+  <xsl:param name="config-file"/>
+  <xsl:variable name="config" select="document('$config-file')/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/trunk/src/core/context/skins/common/xslt/fo/footerinfo.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/common/xslt/fo/footerinfo.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/common/xslt/fo/footerinfo.xsl	Wed Apr 28 14:11:10 2004
@@ -29,7 +29,8 @@
 </credit>
 -->
 
-  <xsl:variable name="config" select="//skinconfig"/>
+  <xsl:param name="config-file"/>
+  <xsl:variable name="config" select="document($config-file)/skinconfig"/>
 
   <xsl:template name="info">
     <xsl:variable name="pdfcredit" select="$config/credits/credit[@role = 'pdf']"/>

Modified: xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl	Wed Apr 28 14:11:10 2004
@@ -18,7 +18,8 @@
      <xsl:output method="xml" media-type="image/svg" omit-xml-declaration="yes" indent="yes"/>
 
   <!-- the skinconf file -->
-  <xsl:variable name="config" select="//skinconfig"/>
+  <xsl:param name="config-file"/>
+  <xsl:variable name="config" select="document($config-file)/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)"/>