Altova Mailing List Archives

RE: [xsl] xsl checkbox

From: "Ricaud Matthieu" <matthieu.ricaud@------->
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>

-----Message d'origine-----
De : owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]De la part de
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


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

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


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


If i put this:  <input type="type" name="name" value="value"> it appears
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

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

 Porque insiste em pagar o dobro? Adira &agrave; liga&ccedil;&atilde;o Portugalmail.

Quanto gasta de Acesso &agrave; Internet? Fa&ccedil;a as contas!

 XSL-List info and archive:

 XSL-List info and archive:


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 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.