[Bug 5200] Not ##defined. Use ##definedSibling

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

           Summary: Not ##defined.  Use ##definedSibling
           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: petexmldev@tech-know-ware.com
         QAContact: www-xml-schema-comments@w3.org


The WG has asked for feedback on applicablity of ##defined in xs:any notQName
attributes.  

It is my opinion that ##defined is too broad, and just because an element or
attribute name has been used elsewhere in a schema does not mean that a
structure is unlikely in future to be extended with the name (perhaps with
different semantics.

However, stopping a schema fragment like:
   <xs:element name='name' type='string'/>
   <xs:element name='title' type='string'/>
   <xs:any ???/>

matching an instance of:
   <name>Bob</name>
   <title>Mr</title>
   <name>Jumbo</name>

seems highly desirable.

Hence a keyword of #definedSibling that prevents an xs:any matching the name of
any defined sibling is desirable.

Received on Monday, 15 October 2007 17:27:06 UTC