]> git.saurik.com Git - bison.git/commitdiff
(xsl:template match="terminal"): Use new attribute names.
authorWojciech Polak <polak@gnu.org>
Wed, 17 Oct 2007 18:12:20 +0000 (18:12 +0000)
committerWojciech Polak <polak@gnu.org>
Wed, 17 Oct 2007 18:12:20 +0000 (18:12 +0000)
(xsl:template match="nonterminal"): Likewise.

data/xslt/xml2text.xsl
data/xslt/xml2xhtml.xsl

index c21bf21755db11164e765762655593b8960a94a6..621599a3267e6eefb0bd27c8cb5356da0b755ae3 100644 (file)
 </xsl:template>
 
 <xsl:template match="terminal">
-  <xsl:value-of select="@symbol"/>
+  <xsl:value-of select="@name"/>
   <xsl:call-template name="line-wrap">
     <xsl:with-param
-      name="first-line-length" select="66 - string-length(@symbol)"
+      name="first-line-length" select="66 - string-length(@name)"
     />
     <xsl:with-param name="line-length" select="66" />
     <xsl:with-param name="text">
-      <xsl:value-of select="concat(' (', @type, ')')"/>
+      <xsl:value-of select="concat(' (', @number, ')')"/>
       <xsl:apply-templates select="rule" />
     </xsl:with-param>
   </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="nonterminal">
-  <xsl:value-of select="@symbol"/>
-  <xsl:value-of select="concat(' (', @type, ')')"/>
+  <xsl:value-of select="@name"/>
+  <xsl:value-of select="concat(' (', @number, ')')"/>
   <xsl:text>&#10;</xsl:text>
   <xsl:variable name="output">
     <xsl:call-template name="line-wrap">
index 5aea6f1a87787c6d7838d56759f19f5858e38cd9..891aa68f719e69ddeaa7a9584a991b11aab6e6f8 100644 (file)
 </xsl:template>
 
 <xsl:template match="terminal">
-  <b><xsl:value-of select="@symbol"/></b>
-  <xsl:value-of select="concat(' (', @type, ')')"/>
+  <b><xsl:value-of select="@name"/></b>
+  <xsl:value-of select="concat(' (', @number, ')')"/>
   <xsl:apply-templates select="rule"/>
   <xsl:text>&#10;</xsl:text>
 </xsl:template>
 </xsl:template>
 
 <xsl:template match="nonterminal">
-  <b><xsl:value-of select="@symbol"/></b>
-  <xsl:value-of select="concat(' (', @type, ')')"/>
+  <b><xsl:value-of select="@name"/></b>
+  <xsl:value-of select="concat(' (', @number, ')')"/>
   <xsl:text>&#10;    </xsl:text>
   <xsl:if test="left/rule">
     <xsl:text>on left:</xsl:text>