summaryrefslogtreecommitdiff
path: root/data/xslt
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2012-10-26 16:50:26 +0200
committerAkim Demaille <akim@lrde.epita.fr>2012-10-26 16:58:55 +0200
commitd0a304384f4207bdf7f8b1038c2226c312f5e954 (patch)
tree1362b308c1b3ae17301c56f53e62fdca13e5e1a7 /data/xslt
parent6b1cbda1b9e0e8f29c0a6e4e44ce2d5a2aee974f (diff)
parent71cb558dfe0f9c80e697308a5084de3b9926ee9c (diff)
downloadbison-d0a304384f4207bdf7f8b1038c2226c312f5e954.tar.gz
Merge remote-tracking branch 'origin/maint'
* origin/maint: (46 commits) doc: minor style change maint: use gendocs's new -I option regen yacc.c: do not define location support when not using locations maint: be compilable with GCC 4.0 tests: address a warning from GCC 4.4 tests: don't use options that Clang does not support tests: restore the tests on -Werror regen parse-gram: update the Bison interface fix comment maint: post-release administrivia version 2.6.4 regen 2.6.4: botched 2.6.3 maint: post-release administrivia version 2.6.3 gnulib: update tests: check %no-lines NEWS: warnings with clang ... Conflicts: NEWS TODO data/c.m4 data/java.m4 doc/Makefile.am src/getargs.c src/getargs.h src/output.c src/parse-gram.c src/parse-gram.h src/parse-gram.y src/reader.h
Diffstat (limited to 'data/xslt')
-rw-r--r--data/xslt/xml2dot.xsl26
1 files changed, 15 insertions, 11 deletions
diff --git a/data/xslt/xml2dot.xsl b/data/xslt/xml2dot.xsl
index 49f454bb..111613ce 100644
--- a/data/xslt/xml2dot.xsl
+++ b/data/xslt/xml2dot.xsl
@@ -55,7 +55,11 @@
<xsl:call-template name="escape">
<xsl:with-param name="subject" select="$filename"/>
</xsl:call-template>
- <xsl:text>"&#10;{&#10;</xsl:text>
+ <xsl:text>&#10;{
+ node [fontname = courier, shape = box, colorscheme = paired6]
+ edge [fontname = courier]
+
+</xsl:text>
<xsl:apply-templates select="state"/>
<xsl:text>}&#10;</xsl:text>
</xsl:template>
@@ -124,20 +128,20 @@
<xsl:with-param name="dst" select="@state"/>
<xsl:with-param name="style">
<xsl:choose>
- <xsl:when test="@symbol = 'error'">
- <xsl:text>dotted</xsl:text>
- </xsl:when>
- <xsl:when test="@type = 'shift'">
- <xsl:text>solid</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>dashed</xsl:text>
- </xsl:otherwise>
+ <xsl:when test="@symbol = 'error'">
+ <xsl:text>dotted</xsl:text>
+ </xsl:when>
+ <xsl:when test="@type = 'shift'">
+ <xsl:text>solid</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>dashed</xsl:text>
+ </xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="label">
<xsl:if test="not(@symbol = 'error')">
- <xsl:value-of select="@symbol"/>
+ <xsl:value-of select="@symbol"/>
</xsl:if>
</xsl:with-param>
</xsl:call-template>