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

Documentation of XMLDTDHandler.start/endEntity incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.0.0 [beta 3]
    • None
    • XNI
    • None
    • Operating System: Windows NT/2K
      Platform: Other
    • 5058

    Description

      (This is beta3, but Bugzilla doesn't recognize that)

      org.apache.xerces.xni.XMLDTDHandler.start/endEntity has a note

      • <p>
      • <strong>Note:</strong> Since the DTD is an entity, the handler
      • will be notified of the end of the DTD entity by calling the
      • endEntity method with the entity name "[dtd]" <em>after</em> calling
      • the endDTD method.

      This should be deleted. A DTD is not an entity it potentially has both an
      internal subset and an external subset. The methods should get called as
      follows:

      startDTD()
      calls for internal subset
      startEntity("[dtd]")
      calls for external subset
      endEntity("[dtd]")
      endDTD()

      Fortunately this is what Xerces already appears to do.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jjc@jclark.com James Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: