<?xml version="1.0" encoding="Shift_JIS" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
      <meta http-equiv="Content-Style-Type" content="text/css" />
      <style type="text/css">.mozpop {position:absolute;visibility:visible;background-color:#ffffcc;border:1px black solid;}</style>

    </head>
    <body>
      <font color="red" size="0"><b><xsl:value-of select="スレ/スレtitle"/></b></font>
      <br />
      <font size="-1">
      <xsl:for-each select="スレ/レス">
        <dl>
          <dt>
            <a><xsl:attribute name="name"><xsl:value-of select="レスNo"/></xsl:attribute></a>
            <xsl:value-of select="レスNo"/>
            名前:
            <xsl:choose>
              <xsl:when test="メアド[. !='']">
                <a><xsl:attribute name="href">mailto:<xsl:value-of select="メアド"/></xsl:attribute><xsl:copy-of select="名前"/></a>
              </xsl:when>
              <xsl:otherwise>
                <font color="forestgreen"><xsl:copy-of select="名前"/></font>
              </xsl:otherwise>
            </xsl:choose>
            <xsl:value-of select="投稿日"/> 
          </dt>
          <dd><xsl:copy-of select="内容"/></dd>
        </dl>

        <div class="mozpop"><xsl:attribute name="id"><xsl:value-of select="レスNo"/></xsl:attribute>
          <font size="-2">
          <dl>
            <dt>
              <xsl:value-of select="レスNo"/>
              名前:<font color="forestgreen"><xsl:copy-of select="名前"/></font>
              [<xsl:copy-of select="メアド"/>]
              <xsl:value-of select="投稿日"/> 
            </dt>
            <dd><xsl:copy-of select="内容"/></dd>
          </dl>
          </font>
        </div>

      </xsl:for-each>
    </font>
    </body>
    </html>
  </xsl:template>

</xsl:stylesheet>
