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.
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/ba...
On Fri, Apr 3, 2015 at 9:49 AM, Jerome Chauveau jerome.chauveau@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.
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/ba...
On Fri, Apr 3, 2015 at 9:49 AM, Jerome Chauveau jerome.chauveau@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.
On Wed, 2015-04-08 at 10:37 +0200, Jérôme Chauveau wrote:
Unfortunatly, the "id" notation fails...
<xi:include href="plop.xml" xpointer="element(myId)"/>
Are you validating against a DTD? If not, the "ID-ness" property won't be set... It might work if the document uses xml:id without DTD validation.
Liam
Hi Liam,
No, there is not validation against a DTD but I am using the xml:id attribute in my target document... I tried several syntaxes - according the w3c specifications - but without any success.
Could you give me an example?
Thanks.
Regards, Jérôme
Le 08/04/2015 16:27, Liam R. E. Quin a écrit :
On Wed, 2015-04-08 at 10:37 +0200, Jérôme Chauveau wrote:
Unfortunatly, the "id" notation fails...
<xi:include href="plop.xml" xpointer="element(myId)"/>
Are you validating against a DTD? If not, the "ID-ness" property won't be set... It might work if the document uses xml:id without DTD validation.
Liam
basex-talk@mailman.uni-konstanz.de