This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Implementing " and ' in literals
- To: xsl-list at mulberrytech dot com
- Subject: Re: Implementing " and ' in literals
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 21 Apr 2000 21:15:55 +0100 (BST)
- References: <Pine.LNX.4.21.0004211219170.22050-100000@ted.sergeant.org>
- Reply-To: xsl-list at mulberrytech dot com
> Actually using C style backslash escaping would be rejected by other
> parsers, I believe. So that's probably a better long term solution (and
> it's prettier too!).
Why would they be rejected? \ isn't a special character to xpath or xml
so \" would just be the two characters. Adding a quote character such as
\ just makes it harder to query attributes that have \ in their values
as you have to double quote the \. This seems far mor common than
wanting to make a literal string that has both " and ' in it.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list