|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] HTML code in an attribute
I'm trying to output HTML code as an attribute to a JavaScript function.
However I get: 'Before<BSome textAfter' I would like to have: 'Before<B>Some text</B>After' <xsl:template match = "List">
<xsl:variable name="var">
<xsl:apply-templates select="ListItem"/>
</xsl:variable><xsl:copy-of select="$var"/> (This works!) <xsl:element name="a"> <xsl:attribute name="href">javascript:void(0);</xsl:attribute> <xsl:attribute name="onMouseOver">return someJS_Function('<xsl:copy-of select="$var"/>')</xsl:attribute> (This doesn't work) <img src="images/note.gif" border="0"/> </xsl:element> </xsl:template> <xsl:template match = "ListItem">Before<B>Some text</B>After</xsl:template>
Share information about yourself, create your own public profile at http://profiles.msn.com. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








