[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] disabling output escaping within an xsl attribute
I want to generate html output where & (ampersand) characters are not escaped. Palm VII Web Clipping Applications do not understand the & character representation in a URL. They know how to handle the literal '&' character representation. Or in other words I want: http://www.dot.com/service?foo=1&bar=2 and not http://www.dot.com/service?foo=1&bar=2 I cannot seem to get disable-output-escaping to work within an xsl:attribute. I can get it to work for non-attributes. What am I doing wrong ? Relevant XSL Code fragment ------------------------------------ <*snip*> <xsl:template match="hedline"> <xsl:element name="b"> <xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of disable-output-escaping="yes" select="string('http://www.dot.com/service?foo=1&bar=2')" /> </xsl:attribute> </xsl:element> <xsl:value-of disable-output-escaping="yes" select="string('&www.dot.com&')"/> </xsl:element> </xsl:template> <*snip*> generated the following output: <b><a href="http://www.dot.com/service?foo=1&bar=2"></a>&www.dot.com&</b> Note that the disable-output-escaping doesn't seem to work for the href attribute ( & is retained as &). Any help would be greatly appreciated. -joe 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
|