<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match = "/">
<html>
<head>
<style>
@import url(CSS_AREMPLACER);
</style>
		<title> IDEOTEST. <xsl:value-of select = "testv3/titre"/></title>
	</head>
<body>
<xsl:variable name="numquestcur" >NUMCUR_AREMPLACER</xsl:variable>

<xsl:for-each select="testv3">

<p align="center">
                        
 <form method="POST" enctype="x-www-form-urlencoded" action="http://www.ideotest.net/servlet/PrjTestJ2" >
<p align="center">
<input type="hidden" name="NUMFIRSTQUEST">
<xsl:attribute  name="value" ><xsl:value-of select = "$numquestcur"/></xsl:attribute>
</input> 
<input type="hidden" name="NUMLASTQUEST">
<xsl:attribute  name="value" ><xsl:value-of select = "$numquestcur"/></xsl:attribute>
</input> 
<input type="hidden" name="CODETEST">
<xsl:attribute  name="value" ><xsl:value-of select = "codetest"/></xsl:attribute>
</input>
<input type="hidden" name="REFTEST">
<xsl:attribute  name="value" ><xsl:value-of select = "reftest"/></xsl:attribute>
</input>
                   <input type="hidden" name="TACHECOURANTE" value="PoseQuestionTableau" />
                <input type="hidden" name="VERSION" value="IDEOTEST 2.1 26" />
                <input type="hidden" name="SESSIONFORMITEL" value="SESSIONFORMITEL_A_REMPLACER" />
                <input type="hidden" name="df" value="false" />

 <table align='center' width='450' border='0' cellspacing='2' cellpadding='0'>
<tr>
		    <td height="20" width="20" valign="top" align="center" ><p> </p>
                   </td>
                        <td width="430" align="right"><span class="questionnum">question <xsl:value-of select = "$numquestcur"/> / <xsl:value-of select = "@nbr-quest"/></span>
				</td>
 </tr>
<tr>
		    <td height="20" width="20" valign="top" align="center" ><p> </p>
                   </td>
                        <td width="430" align="right">
				</td>
 </tr>
 
</table>
 <table align='center' width='450' border='0' cellspacing='2' cellpadding='0'>

<xsl:for-each select="questions">
<xsl:for-each select="questions-item">
<xsl:for-each select="question">
<xsl:variable name="nbrrep" ><xsl:value-of select = "@nbrrep"/></xsl:variable>

<xsl:if test="@numordre=$numquestcur">
<tr>
		    <td height="20" width="20" valign="top" align="center" ><p> </p>
                   </td>
                        <td width="430">
				</td>
 </tr>
<tr>
		    <td width="20" valign="top" align="center">
                   <img src="http://www.ideotest.net/images/bullet02_blue.gif" border="0" height="13" width="13" />
                   </td>
                        <td width="430">
                    <span class="questionlib"><xsl:value-of select="libellequestion" /></span>
				</td>
 </tr>

<xsl:for-each select="question-item/modalite">
<xsl:variable name="debutphrase"><xsl:value-of select="substring(translate(normalize-space(textemodalite),'autre','AUTRE'),1,5)"/></xsl:variable>

<tr>
<td width="20" valign="top" align="center">
<span class="lc">
<xsl:choose>
<xsl:when test="$nbrrep='1'">
<INPUT TYPE="radio"><xsl:attribute  name="value" ><xsl:value-of select ="lettrerep"/></xsl:attribute><xsl:attribute  name="name" >REP<xsl:value-of select = "$numquestcur"/></xsl:attribute></INPUT></xsl:when>
<xsl:otherwise>
<INPUT TYPE="checkbox"><xsl:attribute  name="value" ><xsl:value-of select ="lettrerep"/></xsl:attribute><xsl:attribute  name="name" >REP<xsl:value-of select = "$numquestcur"/></xsl:attribute></INPUT></xsl:otherwise>
</xsl:choose>
</span>  

            </td>
            <td width="430">
            <span class="questionmod"> <xsl:value-of select="textemodalite" /></span>

<xsl:if test="$debutphrase='AUTRE' ">
<xsl:text>    </xsl:text>
<input type="text">
<xsl:attribute  name="name" >Comment<xsl:value-of select = "$numquestcur"/></xsl:attribute> 
<xsl:attribute  name="size" >30</xsl:attribute> 
<xsl:attribute  name="maxlength" >100</xsl:attribute> 
</input>
</xsl:if>

        	</td>
 </tr>
</xsl:for-each>

<xsl:if test="typequestion='T20OUV'">
<tr>
<td width="20" valign="top" height="10"> </td>
<td width="430"></td>
  </tr>
<tr>
<td width="20" valign="top" align="center"></td>
            <td width="430">
 <input type="text" maxlength="250" size="60" ><xsl:attribute  name="name" >Comment<xsl:value-of select = "$numquestcur"/></xsl:attribute></input></td>
  </tr>
</xsl:if>                

</xsl:if>                

</xsl:for-each>
</xsl:for-each>
</xsl:for-each>

</table>

            <center>
                <input name="nom" type="submit" value="Valider" />
            </center>
            <p align="RIGHT">

            </p>
</p>
</form>
</p>

</xsl:for-each>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

