I18N comments on XPath 2.0

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 UTC