RE: [xsl] xsl checkbox

Subject: RE: [xsl] xsl checkbox
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 17 Mar 2004 15:15:25 +0200
Hi,
 
> 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.

See AVTs <http://www.w3.org/TR/xslt.html#attribute-value-templates>. You want

  <input type="{type}" name="{name}" value="{value}"> 

or you could go for something like

  <input>
    <xsl:for-each select="type | name | value">
      <xsl:attribute name="{name()}">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:for-each>
  </input>

if you feel giddy :)

Cheers,

Jarno - Lights Of Euphoria: True Life

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


Current Thread