Permalink
Browse files

Fix issue #187 by making sure a method name without a colon is always…

… in no namespace
  • Loading branch information...
ndw committed May 5, 2015
1 parent 77b9ec1 commit 4f0b0737adfcadf54116e4757ea211391a55c7ed
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/com/xmlcalabash/model/Parser.java
@@ -1073,7 +1073,12 @@ private Serialization readSerialization(XdmNode node) {
value = node.getAttributeValue(new QName("method"));
if (value != null) {
- QName name = new QName(value, node);
+ QName name = null;
+ if (value.contains(":")) {
+ name = new QName(value, node);
+ } else {
+ name = new QName("", value);
+ }
if ("".equals(name.getPrefix())) {
String method = name.getLocalName();
if ("html".equals(method) || "xhtml".equals(method) || "text".equals(method) || "xml".equals(method)) {

0 comments on commit 4f0b073

Please sign in to comment.