Project

Profile

Help

Support for xpointer in Saxon?

Added by Charles Sun almost 6 years ago

Hello,

When I built an XML document based on a variation of DocBook5, in which I included something like this,



    

I got the following warning message:

Warning 
  org.xml.sax.SAXParseException; systemId:
file:/path/to/file/troubleshooting.xml; lineNumber: 201; columnNumber: 65; Include operation failed, reverting to fallback. Resource error reading file as XML (href='test-doc.xml'). Reason: XPointer resolution unsuccessful.

Then as I searched online for a solution, I stumbled upon the following pages:

https://sourceforge.net/p/saxon/mailman/message/22243351/ https://lists.oasis-open.org/archives/docbook-apps/201405/msg00007.html https://issues.apache.org/jira/browse/XERCESJ-1113

Could you help and confirm - has Saxon added support for this use case of xpointer in the recent releases?

Or do you have some recommendations on how to apply a patch in this scenario?

Thanks.


Replies (2)

RE: Support for xpointer in Saxon? - Added by Michael Kay almost 6 years ago

The infomration in that sourceforge message is still, AFAIK, correct. Saxon does not implement XInclude, it merely passes the request for XInclude processing to the XML parser.

I think there have been several attempts to implement XInclude in pure XSLT, and you could perhaps "adopt and adapt" such an implementation. Supporting some kind of XPointer subset should be easier these days given the availability of xsl:evaluate, though you would need to decide exactly what subset of XPointer to support.

Michael Kay Saxonica

RE: Support for xpointer in Saxon? - Added by Charles Sun almost 6 years ago

Thanks for your reply, Michael! This is very helpful. Also thanks for pointing me to xsl:evaluate.

    (1-2/2)

    Please register to reply