Hi, I'm pretty new to XML and XSL and I was wondering if it is possible to use value-of select values within HTML tags. (I.E. I want to pass a the same value-of select value to a JavaScript Function and use that same value-of select value as an <A HREF ...>).
Here's the code that I have:
</xsl:template>
<xsl:template match="//Stop">
<tr>
<td class = "gDescription">
<A HREF="JavaScript
opluateStop(<xsl:value-of select="@No"/> )">
<xsl:value-of select="@No"/></A> - <xsl:value-of select="@Name"/>
</td>
</tr>
<xsl:apply-templates/>
</xsl:template>
However, this does not work because I have two < <. I've tried using the "& lt;" and the "& gt; "but then it just writes the <A HREF etc to the screen.
Is there anyway around this????
Any help would be greatly appreciated!!!
Here's the code that I have:
</xsl:template>
<xsl:template match="//Stop">
<tr>
<td class = "gDescription">
<A HREF="JavaScript
<xsl:value-of select="@No"/></A> - <xsl:value-of select="@Name"/>
</td>
</tr>
<xsl:apply-templates/>
</xsl:template>
However, this does not work because I have two < <. I've tried using the "& lt;" and the "& gt; "but then it just writes the <A HREF etc to the screen.
Is there anyway around this????
Any help would be greatly appreciated!!!