Skip to content

Commit

Permalink
updating the old scripts & scheets
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@766 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Feb 3, 2010
1 parent 15eab7f commit 4f24a4d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
36 changes: 14 additions & 22 deletions shared/xsl/ldf2bgf.xslt
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>
5 changes: 5 additions & 0 deletions topics/languedoc/xbgf/xldf/completeRefSection.xldf
Original file line number Diff line number Diff line change
Expand Up @@ -1674,4 +1674,9 @@
<from>syntax</from>
<to>synopsis</to>
</xldf:changeRole>
<!-- the most recent addition to XBGF -->
<xldf:place>
<section>equate</section>
<inside>refactoring-transformation</inside>
</xldf:place>
</xldf:evolutionSequence>

0 comments on commit 4f24a4d

Please sign in to comment.