namespace prefixes for author action XPaths

Are you missing a feature? Request it's implementation here.
whyme
Posts: 60
Joined: Fri Mar 08, 2013 8:58 am

namespace prefixes for author action XPaths

Post by whyme » Tue Mar 26, 2019 1:11 am

I have a frameworks file where I want, in the Author Actions, to specify an Activation XPath that applies to a <div> in one namespace but not another. It would be nice if in a framework I could declare namespace prefixes and use them, independent of what the user might have (or not have) listed at Preferences > XML > XSLT-XQuery > XPath.

If the functionality I want already exists, it would be nice to have it explained in your documentation.

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

Re: namespace prefixes for author action XPaths

Post by Radu » Tue Mar 26, 2019 10:20 am

Hi,

I understand, I will add an internal issue for this. Right now you need to write the XPath activators something like this:

Code: Select all

*:div[namespace-uri()='http://foo.example.com']
which does not look that nice.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply