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
b881dd71
Commit
b881dd71
authored
Oct 16, 2002
by
Fabien Triolet
Browse files
XSL files for the music sample
parent
d15287bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
transmorpher/samples/music/xslt/form-xvcs.xsl
0 → 100755
View file @
b881dd71
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!-- DOCTYPE vcalendar SYSTEM "vcalxml.dtd" -->
<!-- $Id: form-xvcs.xsl,v 1.1 2002-10-16 08:46:09 triolet Exp $ -->
<xsl:stylesheet
version=
"1.0"
xmlns:vcal=
"http://co4.inrialpes.fr/xml/pimlib/vcal/1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:bib=
"http://www.inrialpes.fr/exmo/papers"
>
<xsl:output
method=
"text"
encoding=
"iso-8859-1"
omit-xml-declaration=
"yes"
standalone=
"yes"
indent=
"yes"
/>
<xsl:strip-space
elements=
"*"
/>
<!-- toplevel -->
<xsl:template
match=
"VCALENDAR"
>
BEGIN:
<xsl:value-of
select=
"name()"
/><xsl:text>
</xsl:text>
<xsl:apply-templates/>
END:
<xsl:value-of
select=
"name()"
/><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template
match=
"VEVENT | VTODO"
>
BEGIN:
<xsl:value-of
select=
"name()"
/><xsl:text>
</xsl:text>
<xsl:apply-templates/>
END:
<xsl:value-of
select=
"name()"
/><xsl:text>
</xsl:text>
</xsl:template>
<!--xsl:template match="*">
<xsl:value-of select="name()"/>
<xsl:apply-templates select="@*"/>:<xsl:value-of select="text()"/><xsl:text>
</xsl:text>
</xsl:template-->
<xsl:template
match=
"*[text()]"
>
<xsl:choose>
<xsl:when
test=
"name()='extension'"
>
<xsl:value-of
select=
"@x-name"
/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select=
"name()"
/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates
select=
"@*[name()!='x-name']"
/>
:
<xsl:value-of
select=
"text()"
/><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template
match=
"@*"
>
;
<xsl:value-of
select=
"name()"
/>
=
<xsl:value-of
select=
"."
/>
</xsl:template>
</xsl:stylesheet>
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