summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache
diff options
context:
space:
mode:
authorbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-07-21 17:53:00 +0000
committerbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-07-21 17:53:00 +0000
commit3d8624b6480be57c37076c68c179319aeef83d26 (patch)
treeaa0e5ff5725df2b4d2af3e4fddb5c85c05f95240 /sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache
parent02b292fe8ef1df72657d48538bd26e3c411bf37f (diff)
Update regular expression to correctly handle multiple prefixes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@966332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java
index f1eb6dc78a..d364aa199f 100644
--- a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java
+++ b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java
@@ -121,7 +121,7 @@ public class XPathHelper {
private Collection<String> getPrefixes(String expression) {
Collection<String> prefixes = new HashSet<String>();
prefixes.add(XMLConstants.DEFAULT_NS_PREFIX);
- Pattern pattern = Pattern.compile("([^:]+):([^:]+)");
+ Pattern pattern = Pattern.compile("([a-zA-Z.]+):([a-zA-Z.]+)");
Matcher matcher = pattern.matcher(expression);
while (matcher.find()) {
String prefix = extractNCName(matcher.group(1), true);