Skip to content

Commit

Permalink
a new tiny tool
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1168 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Feb 29, 2012
1 parent 864d759 commit 7d86db2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
23 changes: 0 additions & 23 deletions shared/xsl/rgf2bgf.xslt

This file was deleted.

16 changes: 16 additions & 0 deletions shared/xsl/rootprods.xslt
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:bgf="http://planet-sl.org/bgf" version="1.0">
<xsl:import href="bgf2bnf.xslt"/>
<xsl:output method="text" encoding="UTF-8" omit-xml-declaration="yes"/>
<xsl:template match="/bgf:grammar">
<xsl:for-each select="root">
<xsl:call-template name="showprods">
<xsl:with-param name="nt" select="."/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<xsl:template name="showprods">
<xsl:param name="nt"/>
<xsl:apply-templates select="/bgf:grammar/bgf:production[nonterminal=$nt]"/>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 7d86db2

Please sign in to comment.