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

xi:include element recognized and resolved without declaration in the schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.8.0
    • None
    • XInclude 1.0
    • None
    • Java 1.5.0
      Windows XP SP 2

    Description

      When the file foo.xml is parsed Xerces should recognize the include element in the "http://www.w3.org/2001/XInclude" namespace without any declaration of that element in the DTD or schema associated with foo.xml. The schema developer should not be forced to declare the xi:include element in every type definition where he wants to include other file just as he can refer external entities without any special declaration in the type definition of the including element. Example:

      foo.xml:

      <!DOCTYPE root [
      <!ELEMENT root (child)>
      <!ELEMENT child EMPTY>
      ]>
      <root>
      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bar.xml"/>
      </root>

      bar.xml:

      <child/>

      Attachments

        Activity

          People

            Unassigned Unassigned
            sorin Sorin Ristache
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: