Altova Mailing List Archives


RE: [xsl] xsl checkbox

From: "Ricaud Matthieu" <matthieu.ricaud@------->
To:
Date: 3/17/2004 3:15:00 AM
Just add {} :  		<input type="type" name="name" value="{value}"></input>
Another way to do (longer but can sometimes be usefull) is :
<input type="type" name="name">
	<xsl:attribute name="value"><xsl:value-of select="value"/></xsl:attribute>
</input>

-----Message d'origine-----
De : owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]De la part de
aroso@xxxxxxxxxxxxxxx
Envoy&eacute; : mercredi 17 mars 2004 13:45
&Agrave; : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : [xsl] xsl checkbox


Citando "aroso@xxxxxxxxxxxxxxx" <aroso@xxxxxxxxxxxxxxx>:

 Hi everybody.

 I&acute;m with a problem.
 How can I create a checkbox in HTML using XML and XSL.
 I explain more:

 I have a XML file with the type of Form to HTML. With XSL I want transform
to
HTML.

 <element>
   <type>checkbox</type>
   <label>Participante</label>
   <name>participante</name>
   <checked>true</checked>
   <value>1</value>
 </element>
 <element>
   <type>text</type>
   <label>Valor1</label>
   <name>valor1</name>
   <value>5</value>
 </element>

 When type is text all right. But when is checkbox is wrong.
 The line in XSL is:

 <xsl:for-each select="element">
 <table>
      <tr>
 	<td>
 		<xsl:value-of select="label"/>
 	</td>
 	<td>
 		<input type="type" name="name" value="value">
          	</input>
 	</td>
     </tr>

 </table>
 </xsl:for-each>


How can i put in the value the text that are in xml?

<value>5</value>

If i put this:  <input type="type" name="name" value="value"> it appears
value
in the input text.




 Can anyone help me?




__________________________________________________________
 O email preferido dos portugueses agora com
 100Mb de espa&ccedil;o e acesso gratuito &agrave; Internet
 http://www.portugalmail.com/gold/

 ----- Fim da mensagem reencaminhada -----



 __________________________________________________________
 Porque insiste em pagar o dobro? Adira &agrave; liga&ccedil;&atilde;o Portugalmail.
 http://acesso.portugalmail.pt/maisbarato




__________________________________________________________
Quanto gasta de Acesso &agrave; Internet? Fa&ccedil;a as contas!
http://acesso.portugalmail.pt/contas

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.