This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How do you prevent ' from being escaped within an attribute value


> 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 &apos;John Doe&apos;"/>
>
> If I use another escaped character such as &amp; the output will be:
> <QUERY where="NAME LIKE &amp;John Doe&amp;"/>
> >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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]