X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/70986d84bc674b0fbd9a4dcf5ee192e2cec364bf..f3d2a1b2ac717cd9faabd5106ff2bc366c49bd6a:/data/xslt/xml2text.xsl diff --git a/data/xslt/xml2text.xsl b/data/xslt/xml2text.xsl index d776bb17..4d34be16 100644 --- a/data/xslt/xml2text.xsl +++ b/data/xslt/xml2text.xsl @@ -3,7 +3,7 @@ <!-- xml2text.xsl - transform Bison XML Report into plain text. - Copyright (C) 2007-2012 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -230,7 +230,7 @@ <xsl:template match="automaton/state"> <xsl:param name="pad"/> <xsl:text> </xsl:text> - <xsl:text>state </xsl:text> + <xsl:text>State </xsl:text> <xsl:value-of select="@number"/> <xsl:text> </xsl:text> <xsl:apply-templates select="itemset/item"> @@ -350,12 +350,7 @@ <xsl:if test="position() = $point + 1"> <xsl:text> .</xsl:text> </xsl:if> - <xsl:if test="$itemset = 'true' and name(.) != 'empty'"> - <xsl:apply-templates select="."/> - </xsl:if> - <xsl:if test="$itemset != 'true'"> - <xsl:apply-templates select="."/> - </xsl:if> + <xsl:apply-templates select="."/> <xsl:if test="position() = last() and position() = $point"> <xsl:text> .</xsl:text> </xsl:if> @@ -373,7 +368,7 @@ </xsl:template> <xsl:template match="empty"> - <xsl:text> /* empty */</xsl:text> + <xsl:text> %empty</xsl:text> </xsl:template> <xsl:template match="lookaheads"> @@ -522,18 +517,6 @@ </xsl:choose> </xsl:template> -<xsl:template name="space"> - <xsl:param name="repeat">0</xsl:param> - <xsl:param name="fill" select="' '"/> - <xsl:if test="number($repeat) >= 1"> - <xsl:call-template name="space"> - <xsl:with-param name="repeat" select="$repeat - 1"/> - <xsl:with-param name="fill" select="$fill"/> - </xsl:call-template> - <xsl:value-of select="$fill"/> - </xsl:if> -</xsl:template> - <xsl:template name="line-wrap"> <xsl:param name="line-length"/> <!-- required --> <xsl:param name="first-line-length" select="$line-length"/>