W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 04 Sep 2007 14:46:19 +0000
CC:
To: www-xml-schema-comments@w3.org
Message-Id: <E1ISZfX-0003OC-9a@wiggum.w3.org>

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

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