- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 04 Sep 2007 14:46:19 +0000
- To: www-xml-schema-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5003
Summary: Applicability of <alternative> element to xml:lang
Product: XML Schema
Version: 1.1 only
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Structures: XSD Part 1
AssignedTo: cmsmcq@w3.org
ReportedBy: fsasaki@w3.org
QAContact: www-xml-schema-comments@w3.org
(See also the mail at
http://lists.w3.org/Archives/Member/member-i18n-core/2007Sep/0005.html .)
This comment is about the <alternative> element used for the assignment of
conditional types, described at
http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#element-alternative
It would be useful to choose types relying on
xml:lang, e.g.
<xs:element name="annotation" type="annotationType">
<xs:alternative test="@xml:lang='ja'" type="rubyType"/>
<xs:alternative test="@xml:lang='en" type="glossingType"/>
...</xs:element>
however, this only makes sense if the information of xml:lang is inherited
for type-checking, that is: test="@xml:lang='ja'" needs to be
interpreted as test="ancestor-or-self::@xml:lang[last()]='ja'" . Could you make
sure that this is possible?
Thank you,
Felix Sasaki (on behalf of the i18n core WG)
Received on Tuesday, 4 September 2007 14:46:35 UTC