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: Tue, 25 Apr 2000 10:10:07 +0100 (BST)
- References: <Pine.LNX.4.21.0004220953370.19253-100000@ted.sergeant.org>
- Reply-To: xsl-list at mulberrytech dot com
> Take the following: 'It\'s a nice day'
> Most (all?) XPath tokenizers simply use the following regular expression:
> '[^']*'
> Which with the above, would stop at 'It\', followed by a single NCName
> token "s" which would cause a syntax error.
and "\'" would produce ' instead of \' that it produces on conforming systems?
I can't see why you can't use variables, from perl I'd expect that
that you could assign strings to a variable in _perl_ syntax
with perl quoting, and then reference that variable by $x in a xpath
expression.
This would correspond using xsl syntax to assign variables that you
could reference in an xpath expression used in xsl.
Note xpath itself only has a syntax for referring to variables, not for
assigning them.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list