-
Notifications
You must be signed in to change notification settings - Fork 15
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@766 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
15eab7f
commit 4f24a4d
Showing
2 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
<xsl:stylesheet version = '1.0' | ||
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' | ||
xmlns:bgf="http://planet-sl.org/bgf" | ||
xmlns:ldf="http://planet-sl.org/ldf"> | ||
<xsl:output method="xml" encoding="UTF-8"/> | ||
|
||
<xsl:template match="/ldf:document"> | ||
<bgf:grammar> | ||
<xsl:apply-templates select="content"/> | ||
</bgf:grammar> | ||
</xsl:template> | ||
|
||
<xsl:template match="grammar"> | ||
<xsl:copy-of select="node()"/> | ||
</xsl:template> | ||
|
||
<xsl:template match="text"/> | ||
<xsl:template match="title"/> | ||
<xsl:template match="sample"/> | ||
<xsl:template match="runnable"/> | ||
|
||
</xsl:stylesheet> | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:bgf="http://planet-sl.org/bgf" xmlns:ldf="http://planet-sl.org/ldf" version="1.0"> | ||
<xsl:output method="xml" encoding="UTF-8"/> | ||
<xsl:template match="/ldf:document"> | ||
<bgf:grammar> | ||
<xsl:apply-templates select="//bgf:production"/> | ||
</bgf:grammar> | ||
</xsl:template> | ||
<xsl:template match="bgf:production"> | ||
<xsl:if test="local-name(../..) != 'example'"> | ||
<xsl:copy-of select="."/> | ||
</xsl:if> | ||
</xsl:template> | ||
</xsl:stylesheet> |
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