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@328 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
aadfca2
commit 029322c
Showing
3 changed files
with
32 additions
and
0 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
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,11 @@ | ||
all: | ||
make clean | ||
make test | ||
|
||
build: | ||
|
||
test: | ||
find ../../transformation/xbgf/tests/ -name "*.xbgf" | xargs -I {} -n1 galax-run perxbgfcommand.xq -serialize wf -doc xsd=../../../shared/xsd/xbgf.xsd -doc xbgf={} -language dxq | grep -v "glx:result" | ||
|
||
clean: | ||
rm -f *.bnf |
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,19 @@ | ||
declare default element namespace "xsd"; | ||
declare variable $xsd external; | ||
declare variable $xbgf external; | ||
|
||
declare function local:report($name,$nodes) | ||
{ | ||
let $counter := count($nodes) | ||
return | ||
if ($counter != 0) | ||
then (" | ||
",data($name),data($counter)) | ||
else "" | ||
}; | ||
|
||
let $schema := $xsd/* | ||
for $command in $schema/*/@name | ||
return | ||
local:report($command,$xbgf/*[local-name()='sequence']/*[local-name()=$command])," | ||
" |