Re: disabling output escaping within an xsl attribute

Subject: Re: disabling output escaping within an xsl attribute
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 31 May 2000 08:43:01 -0600 (MDT)
> Palm VII Web Clipping Applications do not  understand the &amp; character
> representation in a URL.

Then any workaround you use to produce bad HTML should be accompanied by a
bug report to the people who make Palm VII Web Clipping Applications.

> 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 ?

>        <xsl:attribute name="href">
>          <xsl:value-of disable-output-escaping="yes"
> select="string('http://www.dot.com/service?foo=1&amp;bar=2')" />
>        </xsl:attribute>

string() isn't necessary, but shouldn't affect the result. You're not
doing anything wrong. My guess is that disable-output-escaping applies
only to text nodes, according to the spec.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


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


Current Thread