Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1440

XML Schema 1.1: requires support for multiple IDs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.1
    • 2.10.0
    • None

    Description

      Parser doesn't support multiple IDs.

      Example

      XSD:
      <?xml version="1.0"?>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

      <xs:complexType name="ids">
      <xs:sequence>
      <xs:element name="idref" type="xs:IDREF" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="id1" type="xs:ID"/>
      <xs:attribute name="id2" type="xs:ID"/>
      <xs:attribute name="id3" type="xs:ID"/>
      </xs:complexType>

      <xs:element name="root" type="ids"/>
      </xs:schema>

      XML:

      <?xml version="1.0"?>
      <root xsi:noNamespaceSchemaLocation="test_mulID.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      id1="asd87123_" id2="_d8732d" id3="aaaaaa">
      <idref>asd87123_</idref>
      <idref>_d8732d</idref>
      <idref>aaaaaa</idref>
      </root>

      Suggestion:

      Maybe we can simply add support for multiple IDs. Please verify the attached patch. Thanks

      Attachments

        1. MULID_patch.txt
          6 kB
          Kun Xu

        Activity

          People

            knoaman@ca.ibm.com Khaled Noaman
            kunxu Kun Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: