Page 1 of 1

xpath with and without namespace

Posted: Thu Oct 15, 2009 1:31 pm
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

Re: xpath with and without namespace

Posted: Thu Oct 15, 2009 2:27 pm
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