Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moex
Transmorpher
Commits
04521a9c
Commit
04521a9c
authored
Oct 16, 2002
by
Fabien Triolet
Browse files
Process file of the music sample
parent
00ff37c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
transmorpher/samples/music/process.xml
0 → 100644
View file @
04521a9c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE transmorpher SYSTEM "../../dtd/transmorpher.dtd">
<transmorpher
name=
"Music"
version=
"1.0"
xmlns:tm=
"http://transmorpher.fluxmedia.fr/"
>
<!-- select an artist -->
<query
name=
"artist"
type=
"tmq"
root=
"music-collection"
>
<param
name=
"artist"
select=
"TEST"
/>
<select
match=
"music-collection/owner"
/>
<select
match=
"music-collection/artist[name=$artist]"
/>
</query>
<!-- removes all tag <time></time> -->
<ruleset
name=
"stripTime"
>
<remtag
match=
"time"
context=
"track"
/>
</ruleset>
<!-- ######################################### -->
<main
name=
"Collection"
>
<param
name=
"artist"
>
No Doubt
</param>
<param
name=
"filename"
>
Music-collection
</param>
<!-- ######################################### -->
<generate
id=
"generateXML"
type=
"readfile"
out=
"o"
>
<with-param
name=
"file"
>
../samples/music/input/${filename}.xml
</with-param>
</generate>
<dispatch
id=
"disp"
type=
"broadcast"
in=
"o"
out=
"o1 o2"
/>
<apply-ruleset
ref=
"stripTime"
id=
"Strip"
in=
"o1"
out=
"o11"
/>
<apply-external
id=
"xml2html"
in=
"o11"
out=
"o12"
type=
"xslt"
>
<with-param
name=
"file"
>
../samples/music/xslt/${filename}.xsl
</with-param>
</apply-external>
<serialize
id=
"FormHTML"
type=
"writefile"
in=
"o12"
>
<with-param
name=
"file"
>
../samples/music/results/${filename}.html
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
</serialize>
<apply-query
type=
"tmq"
ref=
"artist"
id=
"query"
in=
"o2"
out=
"o22"
>
<with-param
name=
"artist"
>
${artist}
</with-param>
</apply-query>
<apply-external
id=
"xml2html"
in=
"o22"
out=
"o23"
type=
"xslt"
>
<with-param
name=
"file"
>
../samples/music/xslt/${filename}.xsl
</with-param>
<with-param
name=
"artist"
>
${artist}
</with-param>
</apply-external>
<serialize
id=
"FormArtistHTML"
type=
"writefile"
in=
"OUT"
>
<with-param
name=
"file"
>
../samples/music/results/${artist}.html
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
<with-param
name=
"method"
>
xhtml
</with-param>
</serialize>
<!-- ######################################### -->
<generate
id=
"generateXML"
type=
"readfile"
out=
"a1"
>
<with-param
name=
"file"
>
../samples/music/input/${artist}-cal.xml
</with-param>
<!-- <with-param name="type">vcal</with-param> -->
</generate>
<dispatch
id=
"disp"
type=
"broadcast"
in=
"a1"
out=
"a11 a12"
/>
<apply-external
id=
"xml2cal"
in=
"a11"
out=
"a21"
type=
"xslt"
>
<with-param
name=
"file"
>
../samples/music/xslt/form-xvcs.xsl
</with-param>
</apply-external>
<serialize
id=
"FormCAL"
type=
"writefile"
in=
"a21"
>
<with-param
name=
"file"
>
../samples/music/results/${artist}.vcs
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
<with-param
name=
"method"
>
text
</with-param>
</serialize>
<apply-external
id=
"xml2cal"
in=
"a12"
out=
"a22"
type=
"xslt"
>
<with-param
name=
"file"
>
../samples/music/xslt/artist-cal.xsl
</with-param>
<with-param
name=
"artist"
>
${artist}
</with-param>
</apply-external>
<merge
id=
"merger"
type=
"concat"
in=
"o23 a22"
out=
"OUT"
/>
</main>
</transmorpher>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment