Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
node resolve; remove unsupported namespace
Browse files Browse the repository at this point in the history
fixes #62
  • Loading branch information
abargnesi committed Oct 9, 2014
1 parent 53a550b commit 59ff4ce
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,14 @@ private static void remapNamespace(List<Parameter> params,
for (Parameter p : params) {
Namespace ns = p.getNamespace();
if (ns != null) {
String rloc = nsmap.get(ns.getPrefix());
p.setNamespace(new Namespace(ns.getPrefix(), rloc));
String prefix = ns.getPrefix();
String rloc = nsmap.get(prefix);
if (rloc == null) {
// namespace not supported; remove it
p.setNamespace(null);
} else {
p.setNamespace(new Namespace(prefix, rloc));
}
}
}
}
Expand Down

0 comments on commit 59ff4ce

Please sign in to comment.