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

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

From: Geert Josten <geert.josten@dayon.nl>
Date: Tue, 6 Aug 2013 08:57:25 +0200
Message-ID: <30f4abc24e7051b04a467485ea1c7ae3@mail.gmail.com>
To: David Cramer <david@thingbag.net>, XProc Dev <xproc-dev@w3.org>
Hi David,

Sounds like it should be possible in principle. Are you observing
unexpected output or errors?

Kind regards,
Geert

> -----Oorspronkelijk bericht-----
> Van: David Cramer [mailto:david@thingbag.net]
> Verzonden: maandag 5 augustus 2013 23:04
> Aan: XProc Dev
> Onderwerp: Is the xpath() xpointer scheme namespace-aware?
>
> 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 Tuesday, 6 August 2013 06:57:56 UTC

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