qt-2004Feb0415-04: [XQuery] I18N last call comments

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;amp; Jerry&amp;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