<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns="http://www.w3.org/1999/xhtml"
 version="1.0"
 exclude-result-prefixes="#default">

 <xsl:output method="html" encoding="EUC_JP"
  doctype-public="-//W3C//DTD HTML 4.0//EN"
  doctype-system="http://www.w3.org/TR/html4/strict.dtd"
  indent="yes"/>

<!--
 <company-list>
  <company>
   <name yomi=""></name>
   <address></address>
   <phone></phone>
   <fax></fax>
   <url></url>
   <mail></mail>
   <person></person>
   <note></note>
  </company>
 </company-list>
-->

 <xsl:template match="/">
  <html lang="ja">
  <head>
  <meta http-equiv="CONTENT-STYLE-TYPE" content="text/css"/>
  <link rel="CONTENTS" href="../"/>
  <link rev="MADE" href="mailto:morris@musical-fan.org"/>
  <link rel="stylesheet" type="text/css" href="../musical.css"/>
  <title>劇団／制作会社一覧</title>
  </head>
  <body>
  <p><a accesskey="H" href="../">[ミュージカル・ホームへ]</a></p>
  <hr/>
  <h1>劇団／制作会社一覧</h1>
  <hr/>
   <xsl:apply-templates/>
  </body>
  </html>
 </xsl:template>

 <xsl:template match="company-list">
  <ul>
   <xsl:for-each select="company">
    <xsl:sort select="name/@yomi"/>
     <li><xsl:apply-templates/></li>
   </xsl:for-each>
  </ul>
 </xsl:template>

 <xsl:template match="name">
  <span class="first"><xsl:value-of select="."/></span><br/>
 </xsl:template>

 <xsl:template match="address">
  <xsl:apply-templates/><br/>
 </xsl:template>

 <xsl:template match="phone">
  <xsl:value-of select="name()"/><xsl:text>: </xsl:text>
  <xsl:apply-templates/>  <xsl:text>  </xsl:text>
 </xsl:template>

 <xsl:template match="fax">
  <xsl:value-of select="name()"/><xsl:text>: </xsl:text>
  <xsl:apply-templates/><br/>
 </xsl:template>

 <xsl:template match="url">
  <a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
  <xsl:value-of select="."/></a><br/>
 </xsl:template>

 <xsl:template match="mail">
  <xsl:text>mail: </xsl:text>
  <a><xsl:attribute name="href"><xsl:text>mailto:</xsl:text>
  <xsl:value-of select="."/></xsl:attribute>
  <xsl:value-of select="."/></a><br/>
 </xsl:template>
</xsl:stylesheet>

