- From: Jonathan Robie <jonathan.robie@datadirect.com>
- Date: Wed, 13 Oct 2004 12:34:51 -0400
- To: XML Query Comments <public-qt-comments@w3.org>, Martin Duerst <duerst@w3.org>, w3c-i18n-wg@w3.org
Hi Martin,
This is an official response from the W3C XML Query Working Group. In 
[1], you said:
      [4] The special conventions for escaping quotes (production
      [17]), apostrophes ([25]), and curly braces (should probably also
      be a production of its own) may not be necessary. Character
      references should be used, for convenience, named character
      references for { and } could be defined.
Yes, this is certainly true. The escape mechanism is just a convenience, 
and is often easier to use than character references, especially in a 
stylesheet. Consider the following example:
  <template select="./[name = 'Ben &amp; Jerry&apos;s']"/>
It's easier to write this as:
  <template select="./[name = 'Ben && Jerry''s']"/>
And it's also easier to think about what this means.
Jonathan
Received on Wednesday, 13 October 2004 16:35:25 UTC