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

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