You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/04/19 05:31:54 UTC

svn commit: r161832 - forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl

Author: crossley
Date: Mon Apr 18 20:31:53 2005
New Revision: 161832

URL: http://svn.apache.org/viewcvs?view=rev&rev=161832
Log:
Handle "faqs/part" from v1.3 DTDs as well as "faqs/faqsection" from v2.0 DTDs.
Submitted by: Mark Eggers
Issue: FOR-483

Modified:
    forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl

Modified: forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl?view=diff&r1=161831&r2=161832
==============================================================================
--- forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl (original)
+++ forrest/trunk/main/webapp/resources/stylesheets/howto2document.xsl Mon Apr 18 20:31:53 2005
@@ -96,7 +96,7 @@
     <section id="{$title}">
       <title><xsl:value-of select="$title"/></title>
       <xsl:apply-templates select="faq"/>
-      <xsl:apply-templates select="faqsection"/>
+      <xsl:apply-templates select="faqsection | part"/>
     </section>
   </xsl:template>
 
@@ -110,14 +110,14 @@
 
   <!-- numbering a faqsection and adding to the title
     FIXME: maybe an ID should be written out -->
-  <xsl:template match="faqsection">
+  <xsl:template match="faqsection | part">
     <section>
       <title>
-        <xsl:number count="faqsection" level="multiple" format="1.1.1 "/>
+        <xsl:number count="faqsection | part" level="multiple" format="1.1.1 "/>
         <xsl:value-of select="normalize-space(title)"/>
       </title>
       <xsl:apply-templates select="faq"/>
-      <xsl:apply-templates select="faqsection"/>
+      <xsl:apply-templates select="faqsection | part"/>
     </section>
   </xsl:template>
 
@@ -125,7 +125,7 @@
     FIXME: maybe an ID of questnnn should be written out -->
   <xsl:template match="question">
     <title>
-      <xsl:number count="faqsection" level="multiple" format="1.1.1."/>
+      <xsl:number count="faqsection | part" level="multiple" format="1.1.1."/>
       <xsl:number count="faq" level="single" format="1 "/>
       <xsl:value-of select="normalize-space(.)"/>
     </title>