diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-07-11 10:24:26 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-07-11 12:58:44 +0200 |
commit | 44f28d10eed4e3c436cadaff217f626cf3cb5a1f (patch) | |
tree | b414ae981fcb7675adab6558bac255da229a5319 /data | |
parent | 44ad466a325274a787dd400be9ab40338822235e (diff) | |
download | bison-44f28d10eed4e3c436cadaff217f626cf3cb5a1f.tar.gz |
reports: let html reports catch up with --report and --graph
* data/xslt/xml2xhtml.xsl: Show the symbol types.
* tests/report.at: Adjust.
Diffstat (limited to 'data')
-rw-r--r-- | data/xslt/xml2xhtml.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/xslt/xml2xhtml.xsl b/data/xslt/xml2xhtml.xsl index c269745b..a1afad2d 100644 --- a/data/xslt/xml2xhtml.xsl +++ b/data/xslt/xml2xhtml.xsl @@ -331,6 +331,9 @@ <xsl:text> </xsl:text> <li> <b><xsl:value-of select="@name"/></b> + <xsl:if test="string-length(@type) != 0"> + <xsl:value-of select="concat(' <', @type, '>')"/> + </xsl:if> <xsl:value-of select="concat(' (', @token-number, ')')"/> <xsl:for-each select="key('bison:ruleByRhs', @name)"> <xsl:apply-templates select="." mode="number-link"/> @@ -343,6 +346,9 @@ <xsl:text> </xsl:text> <li> <b><xsl:value-of select="@name"/></b> + <xsl:if test="string-length(@type) != 0"> + <xsl:value-of select="concat(' <', @type, '>')"/> + </xsl:if> <xsl:value-of select="concat(' (', @symbol-number, ')')"/> <xsl:text> </xsl:text> <ul> |