forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bd...@apache.org
Subject svn commit: r894016 - /forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl
Date Sat, 26 Dec 2009 19:12:34 GMT
Author: bdube
Date: Sat Dec 26 19:12:33 2009
New Revision: 894016

URL: http://svn.apache.org/viewvc?rev=894016&view=rev
Log:
Make use of generateId.xsl to resolve warnings in generated PDF

Modified:
    forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl

Modified: forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl?rev=894016&r1=894015&r2=894016&view=diff
==============================================================================
--- forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl (original)
+++ forrest/trunk/main/webapp/resources/stylesheets/howto-to-document.xsl Sat Dec 26 19:12:33
2009
@@ -19,6 +19,7 @@
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.0">
   <xsl:import href="copyover.xsl"/>
+  <xsl:import href="generateId.xsl" />
 <!-- Processing a raw howto without revisions -->
   <xsl:template match="/howto">
     <document>
@@ -63,7 +64,8 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-    <section id="{$title}">
+    <section>
+      <xsl:attribute name="id"><xsl:call-template name="generate-id" /></xsl:attribute>
       <title><xsl:value-of select="$title"/></title>
       <xsl:apply-templates/>
     </section>
@@ -83,7 +85,8 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-    <section id="{$title}">
+    <section>
+      <xsl:attribute name="id"><xsl:call-template name="generate-id" /></xsl:attribute>
       <title><xsl:value-of select="$title"/></title>
       <xsl:apply-templates select="faq"/>
       <xsl:apply-templates select="faqsection | part"/>
@@ -100,6 +103,7 @@
     FIXME: maybe an ID should be written out -->
   <xsl:template match="faqsection | part">
     <section>
+      <xsl:attribute name="id"><xsl:call-template name="generate-id" /></xsl:attribute>
       <title><xsl:number count="faqsection | part" level="multiple" format="1.1.1
"/>
         <xsl:value-of select="normalize-space(title)"/></title>
       <xsl:apply-templates select="faq"/>



Mime
View raw message