(bison:ruleNumber): New key. Improve processing time. Suggested by Joel E. Denny.

This commit is contained in:
Wojciech Polak
2007-10-11 16:37:38 +00:00
parent 25f6da67d3
commit fc8b70bf14

View File

@@ -2,6 +2,8 @@
<!-- <!--
bison.xsl - common templates for Bison XSLT. bison.xsl - common templates for Bison XSLT.
$Id$
Copyright (C) 2007 Free Software Foundation, Inc. Copyright (C) 2007 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler. This file is part of Bison, the GNU Compiler Compiler.
@@ -24,6 +26,10 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bison="http://www.gnu.org/software/bison/"> xmlns:bison="http://www.gnu.org/software/bison/">
<xsl:key name="bison:ruleNumber"
match="/bison-xml-report/grammar/rules/rule"
use="@number"/>
<!-- For the specified state, output: #sr-conflicts,#rr-conflicts --> <!-- For the specified state, output: #sr-conflicts,#rr-conflicts -->
<xsl:template match="state" mode="bison:count-conflicts"> <xsl:template match="state" mode="bison:count-conflicts">
<xsl:variable name="transitions" select="actions/transitions"/> <xsl:variable name="transitions" select="actions/transitions"/>