From: Joel E. Denny Date: Sat, 8 Dec 2007 16:05:38 +0000 (+0000) Subject: * data/xslt/bison.xsl (bison:ruleNumber): Rename to... X-Git-Tag: v2.3b~53 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d4a26c4832ca0ae76c99b98144513dced634280b?hp=d4a26c4832ca0ae76c99b98144513dced634280b * data/xslt/bison.xsl (bison:ruleNumber): Rename to... (bison:ruleByNumber): ... this for clarity. * data/xslt/xml2dot.xsl (xsl:template match="item"): Update. * data/xslt/xml2text.xsl (xsl:template match="item"): Update. (xsl:template match="reduction"): Update. (xsl:template match="item"): Update. (xsl:template match="reduction"): Update. In the XML output, don't print the list of rules where symbols appear. Compute it in XSLT instead. Discussed at . * data/xslt/bison.xsl (bison:ruleByLhs): New. (bison:ruleByRhs): New. * data/xslt/xml2text.xsl (xsl:template match="terminal"): Use bison:ruleByRhs. (xsl:template match="terminal/rule"): Remove. (xsl:template match="nonterminal"): Use bison:ruleByLhs and bison:ruleByRhs. (xsl:template match="nonterminal/left/rule|nonterminal/right/rule"): Remove. * data/xslt/xml2xhtml.xsl (xsl:template match="terminal"): Use bison:ruleByRhs and mode="number-link" for rule template. (xsl:template match="terminal/rule"): Remove. (xsl:template match="nonterminal"): Use bison:ruleByLhs and bison:ruleByRhs and mode="number-link" for rule template. (xsl:template match="nonterminal/left/rule|nonterminal/right/rule"): Rewrite as... (xsl:template match="rule" mode="number-link"): ... this. * src/print-xml.c (print_grammar): Don't print the list of rules. ---