Hi,

thank you for your answer. It was helpfull.
Java XInclude support seems to not fully handle XPointer attributes.
One solution consists in using the "element" scheme with the "descendant path" notation:

<xi:include href="plop.xml" xpointer="element(/1/3)"/>

Unfortunatly, the "id" notation fails...

<xi:include href="plop.xml" xpointer="element(myId)"/>


Regards,

Jérôme.


Le 07/04/2015 12:38, Christian Grün a écrit :
Hi Jérôme,

We currently rely on default Java XInclude support [1]. I assume that
it does not properly handle XPointer attributes?

Cheers,
Christian

[1] 
https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/build/xml/SAXWrapper.java#L64


On Fri, Apr 3, 2015 at 9:49 AM, Jerome Chauveau
<jerome.chauv...@unicaen.fr> wrote:
Hi,

Are xpointer implemented in BaseX 8?
I tried to add an xpointer attribute in an xinclude element but it failed.

[a] <xi:include href="plop.xml"/>
[b] <xi:include href="plop.xml" xpointer="myId"/>

[a] works fine but [b] fails (Fallback is called).

Thanks for help,

Jérôme.


--
Jérôme Chauveau - SAIC-CERTIC - Campus 4
Université de Caen Basse-Normandie

Reply via email to