<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/Profiles/XHTML-transitional">
<xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<xsl:output indent="no" method="html"/>
<xsl:template match="/">



<div style="font-size:large;"><strong><xsl:call-template name="title" /></strong></div><br />
<div style="font-size:large;"><strong><xsl:call-template name="artist" /></strong></div><br />
<xsl:call-template name="songwriter" /><br />
<xsl:call-template name="composer" />
<hr /><span style="color:blue;">
<xsl:call-template name="body" /></span>



</xsl:template>


<xsl:template name="title0">
<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="artist0">
<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="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 />
</xsl:when>

<xsl:when test="ko/node() = ja/node()">
<xsl:copy-of select="ko/node()" /><br />
</xsl:when>

<xsl:otherwise>
<xsl:for-each select="ko/text()|ko/ruby/rt/node()"><xsl:copy-of select="."/></xsl:for-each><br />
</xsl:otherwise>
</xsl:choose>

</xsl:for-each>
</xsl:template>


</xsl:stylesheet>
