xsl-list
[Top] [All Lists]

Re: Quoting Quotes in a Stand Along Context

2005-01-26 01:00:53
* Michael Kay <mike(_at_)saxonica(_dot_)com> [2005-01-25 18:23]:
XPath 1.0 doesn't define any way to escape quotes in a string literal.

XPath 2.0 allows you to escape the delimiting quotes by doubling them, for
example

"He said: ""I don't"""

You can achieve this escaping using the XPath 2.0 replace() function.

    Good. I can double the quotes and document that I'm emitting XPath 2.0.

    Thank you very much.

--
Alan Gutierrez - alan(_at_)engrm(_dot_)com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>