Page 1 of 1

namespace prefixes for author action XPaths

Posted: Tue Mar 26, 2019 1:11 am
by whyme
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.

Re: namespace prefixes for author action XPaths

Posted: Tue Mar 26, 2019 10:20 am
by Radu
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