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
5d447a7b
Commit
5d447a7b
authored
Oct 16, 2002
by
Fabien Triolet
Browse files
Changed output in process.xml, changed colors in xsl
parent
a1d5ba00
Changes
2
Hide whitespace changes
Inline
Side-by-side
transmorpher/samples/music/process.xml
View file @
5d447a7b
...
...
@@ -7,7 +7,7 @@
<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
]"
/>
<select
match=
"music-collection/artist[name=
translate($artist,'_',' ')
]"
/>
</query>
<!-- removes all tag <time></time> -->
...
...
@@ -19,7 +19,7 @@
<main
name=
"Collection"
>
<param
name=
"artist"
>
No
Doubt
</param>
<param
name=
"artist"
>
No
_
Doubt
</param>
<param
name=
"filename"
>
Music-collection
</param>
<!-- ######################################### -->
...
...
@@ -38,7 +38,7 @@
</apply-external>
<serialize
id=
"FormHTML"
type=
"writefile"
in=
"o12"
>
<with-param
name=
"file"
>
../samples/music/
results
/${filename}.html
</with-param>
<with-param
name=
"file"
>
../samples/music/
output
/${filename}.html
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
</serialize>
...
...
@@ -52,7 +52,7 @@
</apply-external>
<serialize
id=
"FormArtistHTML"
type=
"writefile"
in=
"OUT"
>
<with-param
name=
"file"
>
../samples/music/
results
/${artist}.html
</with-param>
<with-param
name=
"file"
>
../samples/music/
output
/${artist}.html
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
<with-param
name=
"method"
>
xhtml
</with-param>
</serialize>
...
...
@@ -71,7 +71,7 @@
</apply-external>
<serialize
id=
"FormCAL"
type=
"writefile"
in=
"a21"
>
<with-param
name=
"file"
>
../samples/music/
results
/${artist}.vcs
</with-param>
<with-param
name=
"file"
>
../samples/music/
output
/${artist}.vcs
</with-param>
<with-param
name=
"indent"
>
yes
</with-param>
<with-param
name=
"method"
>
text
</with-param>
</serialize>
...
...
transmorpher/samples/music/xslt/Music-collection.xsl
View file @
5d447a7b
...
...
@@ -12,7 +12,7 @@
<xsl:value-of
select=
"$title"
/>
</title>
</head>
<body
bgcolor=
"
dark
blue"
text=
"
white
"
>
<body
bgcolor=
"
light
blue"
text=
"
black
"
>
<h1>
<center><FONT
COLOR=
"orange"
>
...
...
@@ -20,7 +20,7 @@
<xsl:attribute
name=
"name"
>
<xsl:value-of
select=
"$title"
/>
</xsl:attribute>
<xsl:value-of
select=
"$title"
/><xsl:text>
:
</xsl:text><xsl:value-of
select=
"
$artist
"
/>
<xsl:value-of
select=
"$title"
/><xsl:text>
:
</xsl:text><xsl:value-of
select=
"
translate($artist,'_',' ')
"
/>
</a>
</FONT></center>
</h1>
...
...
@@ -82,7 +82,7 @@
<h2
style=
"color:red"
>
<p><xsl:value-of
select=
"name"
/>
<xsl:text>
</xsl:text><a><xsl:attribute
name=
"href"
>
#
<xsl:value-of
select=
"$title"
/></xsl:attribute>
Up
</a>
<xsl:text>
</xsl:text><a><xsl:attribute
name=
"href"
><xsl:value-of
select=
"
name
"
/>
.html
</xsl:attribute>
Go
</a></p>
<xsl:text>
</xsl:text><a><xsl:attribute
name=
"href"
><xsl:value-of
select=
"
translate(name,' ','_')
"
/>
.html
</xsl:attribute>
Go
</a></p>
</h2>
</a>
...
...
@@ -113,7 +113,7 @@
<xsl:variable
name=
"bgcolor"
>
<xsl:choose>
<xsl:when
test=
"$even"
>
orange
</xsl:when>
<xsl:otherwise>
purpl
e
</xsl:otherwise>
<xsl:otherwise>
whit
e
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Determine whether the CD has times for any of its tracks. -->
...
...
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