(xsl:template match="terminal"): Use new attribute names.

(xsl:template match="nonterminal"): Likewise.
This commit is contained in:
Wojciech Polak
2007-10-17 18:12:20 +00:00
parent cd4a9a598f
commit 36c48187a6
2 changed files with 9 additions and 9 deletions

View File

@@ -115,14 +115,14 @@
</xsl:template> </xsl:template>
<xsl:template match="terminal"> <xsl:template match="terminal">
<xsl:value-of select="@symbol"/> <xsl:value-of select="@name"/>
<xsl:call-template name="line-wrap"> <xsl:call-template name="line-wrap">
<xsl:with-param <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="line-length" select="66" />
<xsl:with-param name="text"> <xsl:with-param name="text">
<xsl:value-of select="concat(' (', @type, ')')"/> <xsl:value-of select="concat(' (', @number, ')')"/>
<xsl:apply-templates select="rule" /> <xsl:apply-templates select="rule" />
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
@@ -134,8 +134,8 @@
</xsl:template> </xsl:template>
<xsl:template match="nonterminal"> <xsl:template match="nonterminal">
<xsl:value-of select="@symbol"/> <xsl:value-of select="@name"/>
<xsl:value-of select="concat(' (', @type, ')')"/> <xsl:value-of select="concat(' (', @number, ')')"/>
<xsl:text>&#10;</xsl:text> <xsl:text>&#10;</xsl:text>
<xsl:variable name="output"> <xsl:variable name="output">
<xsl:call-template name="line-wrap"> <xsl:call-template name="line-wrap">

View File

@@ -297,8 +297,8 @@
</xsl:template> </xsl:template>
<xsl:template match="terminal"> <xsl:template match="terminal">
<b><xsl:value-of select="@symbol"/></b> <b><xsl:value-of select="@name"/></b>
<xsl:value-of select="concat(' (', @type, ')')"/> <xsl:value-of select="concat(' (', @number, ')')"/>
<xsl:apply-templates select="rule"/> <xsl:apply-templates select="rule"/>
<xsl:text>&#10;</xsl:text> <xsl:text>&#10;</xsl:text>
</xsl:template> </xsl:template>
@@ -314,8 +314,8 @@
</xsl:template> </xsl:template>
<xsl:template match="nonterminal"> <xsl:template match="nonterminal">
<b><xsl:value-of select="@symbol"/></b> <b><xsl:value-of select="@name"/></b>
<xsl:value-of select="concat(' (', @type, ')')"/> <xsl:value-of select="concat(' (', @number, ')')"/>
<xsl:text>&#10; </xsl:text> <xsl:text>&#10; </xsl:text>
<xsl:if test="left/rule"> <xsl:if test="left/rule">
<xsl:text>on left:</xsl:text> <xsl:text>on left:</xsl:text>