Skip to content

Commit

Permalink
correctly testing XML Schema schemata
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@777 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Feb 23, 2010
1 parent fc96e23 commit 03610f2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 23 deletions.
57 changes: 35 additions & 22 deletions shared/xsd/Makefile
@@ -1,32 +1,45 @@
validator = ../../download/msv/msv.jar
viewer = ../tools/showxsd
validator = /usr/bin/xmllint --noout --schema
mapper = ../tools/xsd2bgf

build:

test:
make testbgf
make testxbgf
make testbtf
make testxbtf
#make testldf
make testxldf
make testlcf
#make testedd
#make testrgf
make check

testbgf:
${validator} bgf.xsd ../../topics/fl/lci/snapshot/*.bgf

testxbgf:
${validator} xbgf.xsd ../../topics/fl/lci/xbgf/*.xbgf

testbtf:
${validator} btf.xsd ../../topics/fl/lci/xmlsamples/*.btf

testxbtf:

testlcf:
${validator} lcf.xsd ../../topics/*/*/*.lcf

testldf:
${validator} ldf.xsd ../../topics/languedoc/*/*.ldf

testxldf:
${validator} xldf.xsd ../../topics/languedoc/*/xldf/*.xldf

testedd:
${validator} edd.xsd ../edd/*.edd

check:
@make check1 arg=bgf.xsd
@make check1 arg=xbgf.xsd
@make check1 arg=xbgf.xsd
@make check1 arg=btf.xsd
@make check1 arg=ldf.xsd

check-old:
@for file in *.xsd ; \
do \
echo Validating $$file ... ; \
java -jar ${validator} $$file ; \
echo Translating $$file to BGF ... ; \
${viewer} $$file > /dev/null ;\
done

check1:
@echo Validating $$arg ...
@java -jar ${validator} $$arg
@echo Translating $$arg to BGF ...
@${viewer} $$arg > /dev/null
ls -1 *.xsd | xargs -n1 -I _ ${mapper} _ tmp.bgf

clean:
rm -rf bin obj
Expand Down
2 changes: 1 addition & 1 deletion topics/languedoc/xbgf/xldf/completeIntro.xldf
Expand Up @@ -427,7 +427,7 @@
</bgf:production>
</vertical>
</xbgf:remove>
<xbgf:horizontal>transformation</xbgf:horizontal>
<xbgf:horizontal><nonterminal>transformation</nonterminal></xbgf:horizontal>
</xldf:transformGrammar>
<xldf:place>
<section>transformation</section>
Expand Down

0 comments on commit 03610f2

Please sign in to comment.