xpath with and without namespace

Oxygen general issues.
notessensei
Posts: 2
Joined: Wed Feb 20, 2008 8:16 pm

xpath with and without namespace

Post by notessensei »

I like the XPath search box. It is really handy. One little challenge. While I can use /books/book/author to get all authors I need to write it /b:books/b:book/B:authors in my stylesheet due to name space management in my application. (My sample XML doesn't use namespaces). Can I configure the box to ignore (all or certain) namespace prefixes? So /b:books would yield the same result as /books
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: xpath with and without namespace

Post by sorin_ristache »

Hello,

You should add your prefix-namespace mapping to your Oxygen preferences from menu Options -> Preferences -> XML -> XSLT-FO-XQuery -> XPath so that the b prefix is recognized automatically by the XPath toolbar.


Regards,
Sorin
Post Reply