Subject: RE: How do you prevent ' from being escaped within an attribute value
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Mon, 6 Aug 2001 09:08:49 +0200
|
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jonathan
> Miller
> Sent: Sunday, August 05, 2001 10:21 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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
|