W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2004

I18N comments on XPath 2.0

From: Michael Kay <mhk@mhk.me.uk>
Date: Sun, 7 Nov 2004 21:46:48 -0000
To: "'Martin Duerst'" <duerst@w3.org>
Cc: <w3c-i18n-ig@w3.org>, <public-qt-comments@w3.org>
Message-ID: <E1CQusa-0004pp-Ht@frink.w3.org>

Martin,

In item (6) of

http://lists.w3.org/Archives/Public/public-qt-comments/2004Feb/0389.html

you asked:

3.1.5: conversion rules: to what extent can strings, elements
     with string content, and elements allowing mixed content but
     actually only containing a string be mixed? This is important
     for some I18N applications.

We had some difficulty understanding the question. We think the function
calling rules (which is what 3.1.5 is about) are clearly specified, so we're
treating this as a request for clarification rather than a comment on the
spec.

I think the answer is that there are no limitations on the extent to which
these constructs can be mixed, but I may not have understood the question
correctly.

Certainly, if you define a function that expects a string, then in a call of
this function you can supply a string, an element with string content, or an
element with mixed content; and if the function expects a sequence of
strings, then you can supply a sequence containing a mixture of these
constructs.

Does this answer the question?

Michael Kay
for the XSL and XQuery WGs

our ref: qt-2004Feb0389-06
Action A-221-003 
Received on Sunday, 7 November 2004 21:47:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:09 GMT