You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2011/12/12 18:04:28 UTC
svn commit: r1213312 -
/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java
Author: coheigea
Date: Mon Dec 12 17:04:27 2011
New Revision: 1213312
URL: http://svn.apache.org/viewvc?rev=1213312&view=rev
Log:
Making the same change to the XFilter2 Transform
Modified:
santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java
Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java?rev=1213312&r1=1213311&r2=1213312&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/transforms/implementations/TransformXPath2Filter.java Mon Dec 12 17:04:27 2011
@@ -111,9 +111,10 @@ public class TransformXPath2Filter exten
String str =
XMLUtils.getStrFromNode(xpathContainer.getXPathFilterTextNode());
- XPathAPI xpathAPIInstance = new JDKXPathAPI();
- if (str.contains("here()")) {
- xpathAPIInstance = new XalanXPathAPI();
+
+ XPathAPI xpathAPIInstance = new XalanXPathAPI();
+ if (!XalanXPathAPI.isInstalled()) {
+ xpathAPIInstance = new JDKXPathAPI();
}
NodeList subtreeRoots =