Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix issue #103 variables with no prefix are in no namespace
  • Loading branch information
ndw committed Jul 25, 2013
1 parent 49e961e commit f50e225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/xmlcalabash/model/Parser.java
Expand Up @@ -879,6 +879,11 @@ private Variable readVariable(Step parent, XdmNode node) {

QName oname = new QName(name, node);

// If it has no prefix, then it's in no namespace, not the default namespace
if (oname.getPrefix() == null || "".equals(oname.getPrefix())) {
oname = new QName("", name);
}

if (XProcConstants.NS_XPROC.equals(oname.getNamespaceURI())) {
throw XProcException.staticError(28, node, "You cannot specify a variable in the p: namespace.");
}
Expand Down

0 comments on commit f50e225

Please sign in to comment.