You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gr...@locus.apache.org on 2000/09/20 00:02:44 UTC

cvs commit: xml-cocoon/skins/printer/stylesheets faqs2document.xsl

greenrd     00/09/19 15:02:44

  Modified:    skins/xml.apache.org/stylesheets faqs2document.xsl
               skins/printer/stylesheets faqs2document.xsl
  Log:
  oops, build docs didn't build faq answers - fixing
  
  Revision  Changes    Path
  1.6       +7 -11     xml-cocoon/skins/xml.apache.org/stylesheets/faqs2document.xsl
  
  Index: faqs2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/faqs2document.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- faqs2document.xsl	2000/09/18 21:00:49	1.5
  +++ faqs2document.xsl	2000/09/19 22:02:43	1.6
  @@ -27,7 +27,7 @@
         </s1>
   
         <s1 title="Answers">
  -        <xsl:apply-templates select="faq"/>
  +        <xsl:apply-templates select="//faq"/>
         </s1>
       </body>
      </document>
  @@ -48,16 +48,14 @@
     <xsl:template match="faq" mode="index">
   
       <!-- How can we modularise this to avoid copy-and-paste? (RDG) -->
  -    <xsl:variable name="fragid">
  -      faq-<xsl:choose>
  +    <xsl:variable name="fragid">faq-<xsl:choose>
           <xsl:when test="@id">
             <xsl:value-of select="@id"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="position()"/>
           </xsl:otherwise>
  -      </xsl:choose>
  -    </xsl:variable>
  +      </xsl:choose></xsl:variable>
   
       <li>
         <jump anchor="{$fragid}">
  @@ -68,18 +66,16 @@
   
     <xsl:template match="faq">
       <!-- How can we modularise this to avoid copy-and-paste? (RDG) -->
  -    <xsl:variable name="fragid">
  -      faq-<xsl:choose>
  +    <xsl:variable name="fragid">faq-<xsl:choose>
           <xsl:when test="@id">
             <xsl:value-of select="@id"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="position()"/>
           </xsl:otherwise>
  -      </xsl:choose>
  -    </xsl:variable>
  +      </xsl:choose></xsl:variable>
   
  -    <anchor id="faq-{$fragid}"/>
  +    <anchor id="{$fragid}"/>
       <s2 title="{question}">
         <xsl:apply-templates/>
       </s2>
  @@ -93,4 +89,4 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -</xsl:stylesheet>
  \ No newline at end of file
  +</xsl:stylesheet>
  
  
  
  1.3       +7 -11     xml-cocoon/skins/printer/stylesheets/faqs2document.xsl
  
  Index: faqs2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/printer/stylesheets/faqs2document.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- faqs2document.xsl	2000/09/18 21:00:48	1.2
  +++ faqs2document.xsl	2000/09/19 22:02:44	1.3
  @@ -27,7 +27,7 @@
         </s1>
   
         <s1 title="Answers">
  -        <xsl:apply-templates select="faq"/>
  +        <xsl:apply-templates select="//faq"/>
         </s1>
       </body>
      </document>
  @@ -48,16 +48,14 @@
     <xsl:template match="faq" mode="index">
   
       <!-- How can we modularise this to avoid copy-and-paste? (RDG) -->
  -    <xsl:variable name="fragid">
  -      faq-<xsl:choose>
  +    <xsl:variable name="fragid">faq-<xsl:choose>
           <xsl:when test="@id">
             <xsl:value-of select="@id"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="position()"/>
           </xsl:otherwise>
  -      </xsl:choose>
  -    </xsl:variable>
  +      </xsl:choose></xsl:variable>
   
       <li>
         <jump anchor="{$fragid}">
  @@ -68,18 +66,16 @@
   
     <xsl:template match="faq">
       <!-- How can we modularise this to avoid copy-and-paste? (RDG) -->
  -    <xsl:variable name="fragid">
  -      faq-<xsl:choose>
  +    <xsl:variable name="fragid">faq-<xsl:choose>
           <xsl:when test="@id">
             <xsl:value-of select="@id"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="position()"/>
           </xsl:otherwise>
  -      </xsl:choose>
  -    </xsl:variable>
  +      </xsl:choose></xsl:variable>
   
  -    <anchor id="faq-{$fragid}"/>
  +    <anchor id="{$fragid}"/>
       <s2 title="{question}">
         <xsl:apply-templates/>
       </s2>
  @@ -93,4 +89,4 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -</xsl:stylesheet>
  \ No newline at end of file
  +</xsl:stylesheet>