<?xml version="1.0" encoding="SJIS"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.or/Profiles/XHTML-transitional">
<xsl:output indent="no" method="html" encoding="SJIS"/>
<xsl:template match="/">
<html xmlns="http://www.w3.or/Profiles/XHTML-transitional">
<head><title><xsl:call-template name="artist" />-<xsl:call-template name="title" /></title>

</head>
<body bgcolor="#395E97" text="white">
<hr />
<xsl:call-template name="title" /><br />
<xsl:call-template name="artist" /><br />
<xsl:call-template name="songwriter" /><br />
<xsl:call-template name="composer" /><br />
<hr />
<xsl:call-template name="body" />

</body>
</html>
</xsl:template>



<xsl:template name="title">
<xsl:for-each select="(song/head/title/ko|song/head/title/ko/ruby/rt|song/head/title/ko/ruby/rt/small)/text()"><xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>

<xsl:template name="artist">
<xsl:for-each select="(song/head/artist/ko|song/head/artist/ko/ruby/rt|song/head/artist/ko/ruby/rt/small)/text()"><xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>

<xsl:template name="songwriter">
쎌:<xsl:for-each select="(song/head/songwriter/ko|song/head/songwriter/ko/ruby/rt|song/head/songwriter/ko/ruby/rt/small)/text()"><xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>

<xsl:template name="composer">
:<xsl:for-each select="(song/head/composer/ko|song/head/composer/ko/ruby/rt|song/head/composer/ko/ruby/rt/small)/text()"><xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>

<xsl:template name="body">
<xsl:for-each select="song/body/interlude|song/body/row">
<xsl:choose>
<xsl:when test="self::interlude">
<br /><br />
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="(ko|ko/ruby/rt|ko/ruby/rt/small)/text()"><xsl:value-of select="."/>
</xsl:for-each>/
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
