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

xi:include empty but Xerces reports that it contains include.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.2
    • None
    • XInclude 1.0
    • None
    • Windows XP, Java version 1.5.0-b64, using the XIncludeParserConfiguration parser configuration.

    Description

      Trying to validate the following document:

      <!DOCTYPE book [
      <!ELEMENT book (xi:include?, chapter)>
      <!ELEMENT para (#PCDATA)>
      <!ELEMENT chapter (xi:include)>
      <!ELEMENT xi:include (#PCDATA) >
      <!ATTLIST xi:include
      xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude"
      href CDATA #REQUIRED>
      ]>
      <book>
      <xi:include href="included.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
      <chapter>
      <xi:include href="included.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
      </chapter>
      </book>

      with included.xml being:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE para [
      <!ELEMENT para (#PCDATA)>
      ]>

      <para>
      Test.
      </para>

      both Xerces 2.6.2 and the latest CVS build give the error:

      F Elements from namespace 'http://www.w3.org/2001/XInclude', other than 'fallback', are not allowed to be children of 'include' elements. However, 'include' was found. xerces-XInclude-bug.xml file:/F:/test/xerces-XInclude-bug.xml 13:85

      This makes Docbook processing fail when XInclude is used in a similar way.

      Regards,
      George

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            george@sync.ro George Cristian Bina
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: