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: Tue, 19 Feb 2008 12:01:00 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1JRR9g-0007Du-OM@wiggum.w3.org>


------- Comment #24 from petexmldev@codalogic.com  2008-02-19 12:01 -------
(In reply to comment #22)
> ...it might be set either by the user invoking the validation with
> $language=de, or it might be set by the appearance of xml:lang="de" on some
> containing element.

I sense this is being put on the back burner, so I'm just dumping this here as
a place to store the idea (just in case what's suggested isn't implicit to you
guys from what has been mentioned).  Merging Noah's comment #6 proposal and
this from Michael Kay might lend itself to a syntax along the lines of:

<xs:attribute ref='xml:lang' validationParameterName='$language'/>

This would instruct the processor to put the value of xml:lang into some kind
of dictionary (possibly analogous to the ID/IDREF dictionary) such that
descendants could access the value by using $language in assertions. 

Naturally this does suffer all the problems of descendent validation being
context dependent.
Received on Tuesday, 19 February 2008 12:01:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:07 UTC