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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

escaping characters

Status
Not open for further replies.

tokoh

Programmer
May 23, 2001
13
AU
Hi, I have a question ....

If I want to place the CheckBoxName variable into the name and the CheckBoxValue variable into the value field of my checkbox, how do I use escape characters so as this work correctly???

<xsl:for-each select=&quot;//Holding&quot;>
<xsl:variable name=&quot;CheckBoxName&quot; select=&quot;PlanName&quot;/>
<xsl:variable name=&quot;CheckBoxValue&quot; select=&quot;PolNumber&quot;/>

<tr valign = &quot;top&quot; align=&quot;center&quot;>
<td width=&quot;10%&quot;>
<input type=&quot;checkbox&quot; name=&quot;&quot; value&quot;&quot;/>
</td>
</tr>
</xsl:for-each>

 
Hello, tokoh,
Treat input as element and add to it necessary attributes:

<xsl:element name=&quot;input&quot;>

<xsl:attribute name=&quot;type&quot;>checkbox</xsl:attribute>
<xsl:attribute name=&quot;name&quot;><xsl:value-of select=&quot;$CheckBoxName&quot; /></xsl:attribute>
<xsl:attribute name=&quot;value&quot;><xsl:value-of select=&quot;$CheckBoxValue&quot; /></xsl:attribute>

</xsl:element>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top