cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/samples/slides navigation.xsl
Date Thu, 18 May 2000 21:47:36 GMT
stefano     00/05/18 14:47:36

  Modified:    samples/slides navigation.xsl
  Log:
  patched (probable?) Xalan bug with xpath, but this is legal anyway
  
  Revision  Changes    Path
  1.3       +5 -5      xml-cocoon/samples/slides/navigation.xsl
  
  Index: navigation.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/samples/slides/navigation.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- navigation.xsl	2000/04/14 17:13:22	1.2
  +++ navigation.xsl	2000/05/18 21:47:35	1.3
  @@ -34,10 +34,10 @@
   
        <xsl:if test="$section">
         <xsl:if test="not($slide)">
  -       <xsl:apply-templates select="//section[$section]"/>
  +       <xsl:apply-templates select="//section[position() = $section]"/>
         </xsl:if>
         <xsl:if test="$slide">
  -       <xsl:apply-templates select="//section[$section]/slide[$slide]"/>
  +       <xsl:apply-templates select="//section[position() = $section]/slide[position()
= $slide]"/>
         </xsl:if>
        </xsl:if>
      </slide>
  @@ -55,7 +55,7 @@
         <xsl:value-of select="count(//section)"/>
        </xsl:variable>
        <xsl:variable name="previous-last">
  -      <xsl:value-of select="count(//section[$section - 1]/slide)"/>
  +      <xsl:value-of select="count(//section[position() = ($section - 1)]/slide)"/>
        </xsl:variable>
   
        <home href=""/>
  @@ -90,10 +90,10 @@
         <xsl:value-of select="count(//section)"/>
        </xsl:variable>
        <xsl:variable name="last">
  -      <xsl:value-of select="count(//section[$section]/slide)"/>
  +      <xsl:value-of select="count(//section[position() = $section]/slide)"/>
        </xsl:variable>
        <xsl:variable name="previous-last">
  -      <xsl:value-of select="count(//section[$section - 1]/slide)"/>
  +      <xsl:value-of select="count(//section[position() = ($section - 1)]/slide)"/>
        </xsl:variable>
   
        <home href="?section={$section}"/>
  
  
  

Mime
View raw message