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:

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?

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:13 UTC