Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1168 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
864d759
commit 7d86db2
Showing
2 changed files
with
16 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |