I'm trying to get xsl to drop a value into a text box via the html ... something like
Name : <input id="Name" type="text" value=<xsl:value-of select="something"/> />
but that doesn't work (didn't expect it to) -- is there a way to make this work?
I'm trying to get xsl to drop a value into a text box via the html ... something like
Name : <input id="Name" type="text" value=<xsl:value-of select="something"/> />
but that doesn't work (didn't expect it to) -- is there a way to make this work?
There are two ways to do this. The normal way:
<input id="Name" type="text">
<xsl:attribute name="value">
<xsl:value-of select="something"/>
</xsl:attribute>
</input>
And the shortcut:
<input id="Name" type="text" value="{something}"/>