Re: Is the xpath() xpointer scheme namespace-aware?

David Cramer <david@thingbag.net> writes:

> or (assuming I'd bound http://docbook.org/ns/docbook to 'db'):
>
> //*[@xml:id = 'test']/*[not(self::db:title)]
>
> Is the xpath scheme namespace-aware?

Yes, but you have to specify the binding in the pointer:

<xi:include
href="test.xml"
xpointer="xmlns(db=http://docbook.org/ns/docbook)
          xpath(//*[@xml:id = 'test']/*[not(self::db:title)])"/>

If that doesn't work, uhm, let me know.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Tuesday, 6 August 2013 18:33:06 UTC