Is there a way to use xpath 2.0 on Sonarqube? -


i need validate rule on xml , need regex feature, found on xpath 2.0. downloaded last sonarqube 6.1, xpath continue being version 1.0. there way use version 2.0?

from quick @ source code (org/sonar/api/utils/xpathparser.java) looks me if application using jaxp service api instantiate xpath parser. see happens if you

(a) put saxon on classpath, , (b) set value of system property "javax.xml.xpath.xpathfactory" value "net.sf.saxon.xpath.xpathfactoryimpl"

note step (a) on own isn't enough, because saxon no longer nominates xpath parser using meta-inf mechanism - causing many problems applications written assume use of xalan.

this may or may not succeed in picking saxon, , if pick saxon, may or may not succeed in running it. there other problems - example, note xpathparser class in sonarqube creates dom namespaceaware set false, isn't start.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -