Subject: [xsl] disable-output-escaping in attributes From: Justin Makeig <jmakeig@xxxxxxxxx> Date: Sun, 22 Apr 2001 00:07:42 -0700 (PDT) |
I'm having trouble adding ampersands within attributes (i.e. putting querystrings in href or src attributes). The transformation (in both MSXML3 and Sablot for PHP on Win2k) <xsl:template match="image"> <img> <xsl:attribute name="src">resize.php?img= <xsl:value-of select="@filename"/>.jpg <xsl:text disable-output-escaping="yes">&</xsl:text> ratio=0.25 <xsl:attribute name="blah"> <xsl:text disable-output-escaping="yes">&</xsl:text> </xsl:attribute> <xsl:attribute> </img> </xsl:template> results in <img src="resize.php/img=someimg.jpg&ratio=0.25" blah="&"></img> (note: the above will look _correct_ to HTML mail clients; please view the source) It apprears that for attributes that aren't "recoginzed" (like "blah") the output escaping works fine, but for others it returns the special character entity name. Any ideas? Thanks, Justin __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XML source with DOCTYPE d, Jeni Tennison | Thread | AW: [xsl] disable-output-escaping i, Julian Reschke |
[xsl] namespace problem, ºÎº¼¾ü | Date | AW: [xsl] disable-output-escaping i, Julian Reschke |
Month |