]> git.saurik.com Git - bison.git/commitdiff
(bison:ruleNumber): New key. Improve processing time. Suggested by Joel E. Denny.
authorWojciech Polak <polak@gnu.org>
Thu, 11 Oct 2007 16:37:38 +0000 (16:37 +0000)
committerWojciech Polak <polak@gnu.org>
Thu, 11 Oct 2007 16:37:38 +0000 (16:37 +0000)
data/xslt/bison.xsl

index 6d96e014ae64be1ab20b79187132b233c15ca13e..ce3fe0f36ff3b3d63eb201254ef75e3083d7a2e3 100644 (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.
 
     This file is part of Bison, the GNU Compiler Compiler.
     Copyright (C) 2007 Free Software Foundation, Inc.
 
     This file is part of Bison, the GNU Compiler Compiler.
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:bison="http://www.gnu.org/software/bison/">
 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   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 -->
 <xsl:template match="state" mode="bison:count-conflicts">
   <xsl:variable name="transitions" select="actions/transitions"/>
 <!-- For the specified state, output: #sr-conflicts,#rr-conflicts -->
 <xsl:template match="state" mode="bison:count-conflicts">
   <xsl:variable name="transitions" select="actions/transitions"/>