[xml] XInclude anomality ...

Hello list,

I'm trying to understand a strange behavior of libxml2's XInclude
implementation. Given the following fragment:

 <xi:include href="book.xml" xpointer="xpointer(//author)" >
   <xi:fallback>No authors for this book ... </xi:fallback>

If book.xml doesn't exist the fallback will kick in and everything
works as expected, but if book.xml does exist but the xpointer doesn't
return any nodes the inclusion fails with the following error message:

: XPointer evaluation failed: #xpointer(//author)
: could not load /tmp/book.xml, and no fallback was found

Is this a quirk in the specs (but then the error message would be utterly
misleading) of a bug in the implementation?

 TIA Ralf Mattes

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]