Skip to content

Commit

Permalink
Fix issue #187 by making sure a method name without a colon is always…
Browse files Browse the repository at this point in the history
… in no namespace
  • Loading branch information
ndw committed May 5, 2015
1 parent 401fc67 commit 2003bbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/xmlcalabash/model/Parser.java
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2003bbf

Please sign in to comment.