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

Is the xpath() xpointer scheme namespace-aware?

From: David Cramer <david@thingbag.net>
Date: Mon, 05 Aug 2013 16:03:36 -0500
Message-ID: <52001328.9070202@thingbag.net>
To: XProc Dev <xproc-dev@w3.org>
Hi there,
I'm processing DocBook xml with Calabash and using xinclude with the
xpath() scheme to pull in all the children of a section EXCEPT for the
title. The following works fine, but is inelegant:

<xi:include
href="test.xml"
xpointer="xpath(//*[@xml:id = 'test']/*[not(local-name(.) = 'title')])">

I was expecting to be able to do:

//*[@xml:id = 'test']/*[not(self::title)]

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?

Regards,
David
Received on Monday, 5 August 2013 21:04:05 UTC

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