This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do you prevent ' from being escaped within an attribute value
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How do you prevent ' from being escaped within an attribute value
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- Date: Mon, 6 Aug 2001 09:08:49 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Jonathan
> Miller
> Sent: Sunday, August 05, 2001 10:21 PM
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] How do you prevent ' from being escaped within an
> attribute value
>
> ...
>
> ====================================
> Output:
> ====================================
> <QUERY where="NAME LIKE 'John Doe'"/>
>
>
> I have tried many different variations of the above example and I
> can't seem
> to achieve the desired output of:
> <QUERY where="NAME LIKE 'John Doe'"/>
>
> If I use another escaped character such as & the output will be:
> <QUERY where="NAME LIKE &John Doe&"/>
> >From the XML spec I gather this has something to do with the
> fact that it is
> an attribute.
Both are well-formed, both have the same character content (taken as XML).
Why do you care?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list