[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forrest-dev
Subject:    svn commit: rev 10375 - in xml/forrest/trunk/src/core/context/skins/common/xslt: fo svg
From:       cheche () apache ! org
Date:       2004-04-28 21:11:11
Message-ID: 20040428211111.59509.qmail () minotaur ! apache ! org
[Download RAW message or body]

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)"/>
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic