]> matita.cs.unibo.it Git - helm.git/commitdiff
----------------------------------------------------------------------
authorIrene Schena <irene.schena@unibo.it>
Wed, 25 Jul 2001 13:55:18 +0000 (13:55 +0000)
committerIrene Schena <irene.schena@unibo.it>
Wed, 25 Jul 2001 13:55:18 +0000 (13:55 +0000)
Modified Files:
1) content_to_html.xsl: bug fixed
----------------------------------------------------------------------

helm/style/content_to_html.xsl

index 110732e912a07b60ffd18a77469e79665496decf..fdf9b7829e3a5970d623ea95ca4f12ed23476849 100644 (file)
      <FONT color="red">CASE </FONT>
      <xsl:apply-templates mode="inline" select="*[position()=3]"/>
      <FONT color="red"> OF </FONT>
-     <xsl:for-each select="piecewise/piece">
+<xsl:for-each select="piecewise/piece">
+<!--<xsl:for-each select="*[position() mod 2 = 0 and position()>3]">-->
       <xsl:choose>
        <xsl:when test="not(position() = 1)">
         <xsl:text> | </xsl:text> 
        </xsl:when> 
       </xsl:choose>
-      <xsl:apply-templates mode="inline" select="./*[2]"/>
+<xsl:apply-templates mode="inline" select="./*[2]"/>
       <xsl:call-template name="mksymbol-1">
        <xsl:with-param name="symbol" select="'RightArrow'"/>
        <xsl:with-param name="color" select="'green'"/>
          </xsl:apply-templates>
          <xsl:text> OF </xsl:text> 
          <xsl:for-each select="piecewise/piece">
+    <!--   <xsl:for-each select="*[position() mod 2 = 0 and position()>3]">-->
          <br/>
          <xsl:call-template name="make_indent">
           <xsl:with-param name="current_indent" select="$current_indent + 2"/> 
              <xsl:text>| </xsl:text>
             </xsl:otherwise>
             </xsl:choose>
-            <xsl:apply-templates select="./*[2]"/>
+          <xsl:apply-templates select="./*[2]"/>
             <xsl:call-template name="mksymbol-1">
              <xsl:with-param name="symbol" select="'RightArrow'"/>
              <xsl:with-param name="color" select="'green'"/>
              <xsl:with-param name="size" select="'+0'"/>
             </xsl:call-template>
             <xsl:variable name="body_size">
-            <xsl:apply-templates select="./*[2]" mode="charcount"/>
+  <xsl:apply-templates 
+              select="./*[1]/*[1]" mode="charcount"/>
             </xsl:variable>
             <xsl:choose>
              <xsl:when test="$body_size > $framewidth">
                <xsl:with-param name="current_indent" 
                     select="$current_indent + 8"/>   
               </xsl:call-template>
-             <xsl:apply-templates 
-                   select="following-sibling::*[position()= 1]">
+<xsl:apply-templates 
+                   select="./*[1]">
               <xsl:with-param name="current_indent" 
                    select="$current_indent + 8"/>      
              </xsl:apply-templates>
             </xsl:when>
             <xsl:otherwise>
-             <xsl:apply-templates select="following-sibling::*[position()= 1]"
+     <xsl:apply-templates select="./*[1]"
                    mode="inline" />
             </xsl:otherwise>
            </xsl:choose>