W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2008

[Bug 5003] Applicability of <alternative> element to xml:lang

From: <bugzilla@wiggum.w3.org>
Date: Fri, 18 Jan 2008 09:11:53 +0000
CC:
To: www-xml-schema-comments@w3.org
Message-Id: <E1JFnGT-0006ns-Lq@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5003





------- Comment #14 from mike@saxonica.com  2008-01-18 09:11 -------
I'm fine having a rule that says "if the language is DE then the currency must
be EUR". But what is the object to which this rule relates? I don't think it's
a rule about the validity of the currency, I think it's a rule about the
validity of some object that contains both a language and a currency.

Now we could have done this differently, of course. The principle outlined
above is not an absolute. But it happens to be an assumption that's built
pretty deeply into QT's adoption of a type system based on XML Schema. When in
XSLT I do:

<invoice xml:lang="en">
  <xsl:copy-of select="$payment" validation="preserve"/>
</invoice>

I'm relying on the fact that if the payment was valid in one context, then it
is going to remain valid in a different context.

So I don't think there's anything philosophically absurd about the idea that
the validity of an object should be context-sensitive, I'm just saying that
changing the rules of the game in this way is going to be unacceptable to two
of the important stakeholders.
Received on Friday, 18 January 2008 09:15:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:12 GMT