<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet xmlns:xsl ="http://www.w3.org/TR/WD-xsl">   
<xsl:template match="/">                                               
<html>
<head>
<title><xsl:value-of select ="doc/title"/></title>
<style type="text/css">
body{margin-top:35;margin-left:50;font-family:"ＭＳ Ｐゴシック",sans-serif;font-size:12pt;line-height:18pt;}
.prblem{font-family:"ＭＳ Ｐゴシック",sans-serif;font-weight:bold;font-size:12pt;line-height:15pt;}
.pr{text-align:right;font-family:"ＭＳ Ｐゴシック",sans-serif;font-weight:bold;font-size:11pt;line-height:22pt;width:160;}
</style>
<script type="text/JavaScript">
<xsl:comment>
<![CDATA[
function chk()
  {          c1="無";
             c2="無";
             c3="無";
             c4="無";
             c5="無";
              c1= document.forms[0].kaitou.selectedIndex;
      		  c2= document.forms[1].kaitou.selectedIndex;
		      c3= document.forms[2].kaitou.selectedIndex;
      		  c4= document.forms[3].kaitou.selectedIndex;
      		  c5= document.forms[4].kaitou.selectedIndex;
              document.kotae.sc.value=c1+c2+c3+c4+c5;                            
   }
         ]]>
</xsl:comment>
</script>     

</head>
<body>
   <h1><xsl:value-of select ="doc/contents/contentstitle"/></h1>
   <div><xsl:apply-templates select="doc/contents/contentsbody" /></div>
<HR></HR>
<form name="kotae"  method="post" action="/cgi-bin/kawa.pl">
<input type="submit" value="解答送信" name="sc"></input>
</form>
</body>
</html>
</xsl:template>
<xsl:template match="contentsbody"> 
<xsl:for-each select="prblem">
<div><xsl:apply-templates /></div>
<div class="pr">
<form name="kaitouran">
解答欄
<select name="kaitou" onClick="chk()">
   <option value="kaitou1">ア</option>
   <option value="kaitou2">イ</option>
   <option value="kaitou3">ウ</option>
   <option value="kaitou4">エ</option>
   <option value="kaitou5">オ</option>
</select>
</form>
</div>
</xsl:for-each>
</xsl:template>
<xsl:template match="pr"> 
<div><xsl:value-of /></div>
</xsl:template>
</xsl:stylesheet>   

