Commit b881dd71 authored by Fabien Triolet's avatar Fabien Triolet
Browse files

XSL files for the music sample

parent d15287bf
<?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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment