[Bug 5303] Recognize URI scheme without schema assessment

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

           Summary: Recognize URI scheme without schema assessment
           Product: SML
           Version: FPWD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: public-sml@w3.org


In the URI scheme definition:

"1. An SML reference element is identified as using the SML URI scheme if and
only if exactly one instance of the sml:uri global element declaration is
present as a child of that reference element."

Suggest to replace it with

"1. An SML reference element is identified as using the SML URI scheme if and
only if exactly one element information item with the name sml:uri is present
as a child of that reference element."

This makes it possible to identify SML URI scheme instances without schema
assessment. It also avoid certain strange cases. For example, if the schema
has:

<element name="myRef">
  <complexType>
    <sequence>
      <element ref="sml:uri"/>
      <any processContents="skip"/>
    </sequence>
  </complexType>
</element>

And in the instance:
<myRef sml:ref="true">
  <sml:uri> abc </sml:uri>
  <sml:uri> xyz </sml:uri>
</myRef>

Then according to the current definition, this is viewed as an instance of the
URI scheme, because only the first <sml:uri> matches the global element
declaration and the second matches the wildcard.

Received on Thursday, 6 December 2007 15:00:24 UTC