W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2013

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

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 06 Aug 2013 14:32:31 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2vc3ir7pc.fsf@nwalsh.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:11 UTC