Skip to content

Commit

Permalink
XLDF now incorporates XBGF
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@542 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Apr 7, 2009
1 parent 31e8fdb commit b46834c
Show file tree
Hide file tree
Showing 9 changed files with 449 additions and 355 deletions.
22 changes: 20 additions & 2 deletions shared/xsd/xldf.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</xsd:annotation>

<xsd:import namespace="http://planet-sl.org/ldf" schemaLocation="ldf.xsd"/>
<!--xsd:import namespace="http://planet-sl.org/xbgf" schemaLocation="xbgf.xsd"/-->
<xsd:import namespace="http://planet-sl.org/xbgf" schemaLocation="xbgf.xsd"/>

<xsd:element name="sequence">
<xsd:annotation>
Expand All @@ -29,7 +29,10 @@
<xsd:group name="transformation">
<xsd:annotation>
<xsd:documentation>
Here is a grouped list of all the XLDF transformations.
XLDF transformation suite does not include any sophisticated grammar
manipulations, in that sense it complements XBGF rather than extends it.
All grammar transformations are supposed to be performed prior to
language document transformations.
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
Expand All @@ -44,9 +47,24 @@
<xsd:element ref="xldf:remove-section"/>
<xsd:element ref="xldf:add-section"/>
<xsd:element ref="xldf:add-subsection"/>
<xsd:element ref="xldf:transform-grammar"/>
</xsd:choice>
</xsd:group>

<xsd:element name="transform-grammar">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="target" type="xsd:string"/>
<xsd:group ref="xbgf:transformation"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="insert">
<xsd:annotation>
<xsd:documentation>
Expand Down
6 changes: 2 additions & 4 deletions topics/languedoc/xbgf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ build: xbgf.ldf

xbgf.ldf:
../../../shared/tools/xsd2bgf ../../../shared/xsd/xbgf.xsd xbgf.bgf
${xbgf} beautify_bgf.xbgf xbgf.bgf xbgf_1.bgf
${xbgf} beautify_xbgf.xbgf xbgf_1.bgf xbgf_2.bgf
../../../topics/extraction/xsd2ldf/ldfgen.py ../../../shared/xsd/xbgf.xsd xbgf_2.bgf xbgf.ldf
../../../topics/extraction/xsd2ldf/ldfgen.py ../../../shared/xsd/xbgf.xsd xbgf.bgf xbgf.ldf

rebuild:
make clean
make build

clean:
rm -f xbgf*.bgf xbgf*.ldf xbgf.html xbgf.fo xbgf.pdf *.xbnf
rm -f bgf*.bgf ldf*.bgf ldf*.ldf ldf.fo ldf.pdf
rm -f bgf*.bgf ldf*.bgf ldf*.ldf ldf.fo ldf.pdf xldf-tmp*
rm -f *.aux *.log *.toc *.tex printed_for_xldf.tmp

check:
Expand Down
107 changes: 0 additions & 107 deletions topics/languedoc/xbgf/beautify_bgf.xbgf

This file was deleted.

Loading

0 comments on commit b46834c

Please sign in to comment.