xsl-list
[Top] [All Lists]

Re: disable-output-escaping="yes"

2003-03-12 12:10:15
ani(_at_)lamundial(_dot_)net wrote:
Hi:
I can use d-o-e in xsl:value-of 
<xsl:value-of select="@URLMessageId" disable-output-escaping="yes"/>
but when usin {} ....
<a href="javascript:popupid('{(_at_)URLMessageId}');">link</a>
is there any way? or should it be done using xsl:attribute?

XSLT 1.0 does not support d-o-e for attribute values, no matter how you try it.
Some XSLT processors may have extensions for this purpose; e.g. Saxon has one.

You probably do not really need d-o-e. I hope you are not asking the weekly
FAQ about "&" in an attribute value... (the answer is: "&" is incorrect and
just happens to be tolerated by most browsers, while "&amp;" is correct and
works in all browsers)

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>