xsl-list
[Top] [All Lists]

RE: xsl checkbox

2004-03-17 06:15:25
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



<Prev in Thread] Current Thread [Next in Thread>