docbook-apps

Xerces-J and xml:id support

  • 1.  Xerces-J and xml:id support

    Posted 03-09-2012 00:24

    After converting a small amount of XML content from DocBook 4.5 to DocBook 5, I tried generating output and was surprised to discover that Xerces-J 2.11 (the latest release) doesn't support xml:id. As a result, I get "XPointer resolution unsuccessful" for any XIncludes that reference an XPointer.

    I've read other posts that suggest there's a patch somewhere that addresses this, but I haven't found a downloadable version of Xerces-J that includes the patch. Can anyone point me in the right direction?

    I tried downloading the source for Xerces-J 2.11 and then building new JAR files with patched classes found here: https://issues.apache.org/jira/browse/XERCESJ-1113. However, I couldn't get Xerces-J to build successfully with several different JDK versions due to problems with org.apache.html.dom.HTMLElementImpl. I haven't tried later versions of the Xerces-J source from the Subversion Repository yet to see if they build successfully.

    Any help would be appreciated.

    Thanks in advance,
    Jeff Powanda
    Vocera Communications
    (831) 882-5150