Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL value to a text box

Status
Not open for further replies.

rhull

Programmer
May 23, 2001
46
US
Hello,
I am trying to take a value from XSL and place it in a HTML text box.

<xsl:variable name=&quot;rowID&quot; select=&quot;(rowid)&quot;/>

<input type=text size=3 maxlength=25 name='txtRowID' value=&quot;$rowID&quot;> </input>

But It isn't working. I have tried a variety of ways and this seems most logical. Any ideas would help.

Thanks!

Ryan
 
The correct way of using the value of a variable is:
<input type=&quot;text&quot; size=&quot;3&quot; maxlength=&quot;25&quot; name=&quot;txtRowID&quot;>
<xsl:attribute name=&quot;value&quot;><xsl:value-of select=&quot;$rowID&quot;/></xsl:attribute>
</input>
If you are trying to set a value of an attribute of a tag, you have to use <xsl:attribute>.
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top