diff options
author | Joel E. Denny <joeldenny@joeldenny.org> | 2010-04-30 19:50:52 -0400 |
---|---|---|
committer | Joel E. Denny <joeldenny@joeldenny.org> | 2010-05-01 20:41:10 -0400 |
commit | ca7a59e838ee278ced86ea0918487e5a7c69f8c3 (patch) | |
tree | 0287d84b4ade60d989ec45739305b40b40522302 /data | |
parent | ad6f84e550b78816b5591fc174883e49720deca8 (diff) | |
download | bison-ca7a59e838ee278ced86ea0918487e5a7c69f8c3.tar.gz |
tests: fix maintainer-xml-check.
* data/xslt/xml2dot.xsl (xsl:template match="bison-xml-report"):
Update output to include comments now produced by --graph.
(xsl:template match="automaton"): As for --graph, name the
digraph after the grammar file.
* src/print-xml.c (escape_bufs): Enlarge array.
(print_xml): Add bug-report and url attributes to
bison-xml-report element.
(cherry picked from commit bc81de36b7ef78ff280e14a173e5cc5d5a3191eb)
Diffstat (limited to 'data')
-rw-r--r-- | data/xslt/xml2dot.xsl | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/data/xslt/xml2dot.xsl b/data/xslt/xml2dot.xsl index 887a9917..836bb1b6 100644 --- a/data/xslt/xml2dot.xsl +++ b/data/xslt/xml2dot.xsl @@ -35,11 +35,27 @@ </xsl:template> <xsl:template match="bison-xml-report"> - <xsl:apply-templates select="automaton"/> + <xsl:text>// Generated by GNU Bison </xsl:text> + <xsl:value-of select="@version"/> + <xsl:text>. </xsl:text> + <xsl:text>// Report bugs to <</xsl:text> + <xsl:value-of select="@bug-report"/> + <xsl:text>>. </xsl:text> + <xsl:text>// Home page: <</xsl:text> + <xsl:value-of select="@url"/> + <xsl:text>>. </xsl:text> + <xsl:apply-templates select="automaton"> + <xsl:with-param name="filename" select="filename"/> + </xsl:apply-templates> </xsl:template> <xsl:template match="automaton"> - <xsl:text>digraph Automaton { </xsl:text> + <xsl:param name="filename"/> + <xsl:text>digraph "</xsl:text> + <xsl:call-template name="escape"> + <xsl:with-param name="subject" select="$filename"/> + </xsl:call-template> + <xsl:text>" { </xsl:text> <xsl:apply-templates select="state"/> <xsl:text>} </xsl:text> </xsl:template> |