Subject: RE: [xsl] xsl checkbox From: "Ricaud Matthieu" <matthieu.ricaud@xxxxxxx> Date: Wed, 17 Mar 2004 16:01:47 +0100 |
<input type="checkbox" name="name" checked="checked" /> ? -----Message d'origine----- De : owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]De la part de aroso@xxxxxxxxxxxxxxx Envoyé : mercredi 17 mars 2004 15:24 À : xsl-list@xxxxxxxxxxxxxxxxxxxxxx Objet : RE: [xsl] xsl checkbox Thanks. Only one thing. For this line <input type="checkbox" name="name" checked /> i need to check in a checkbox. How can I do this? Chears Citando Ricaud Matthieu <matthieu.ricaud@xxxxxxx>: 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é : mercredi 17 mars 2004 13:45 À : xsl-list@xxxxxxxxxxxxxxxxxxxxxx Objet : [xsl] xsl checkbox Citando "aroso@xxxxxxxxxxxxxxx" <aroso@xxxxxxxxxxxxxxx>: Hi everybody. I´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ço e acesso gratuito à Internet http://www.portugalmail.com/gold/ ----- Fim da mensagem reencaminhada ----- __________________________________________________________ Porque insiste em pagar o dobro? Adira à ligação Portugalmail. http://acesso.portugalmail.pt/maisbarato __________________________________________________________ Quanto gasta de Acesso à Internet? Faç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 __________________________________________________________ O email preferido dos portugueses agora com 100Mb de espaço e acesso gratuito à Internet http://www.portugalmail.com/gold/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl checkbox, aroso | Thread | RE: [xsl] xsl checkbox, Michael Kay |
RE: [xsl] xsl checkbox, Jarno . Elovirta | Date | RE: [xsl] Removing leading zeros fr, Kotes Mogili |
Month |