Permalink
Browse files

Test for invalid placement of xi:fallback elements

  • Loading branch information...
ndw committed Apr 14, 2016
1 parent 20e41ea commit 1c9c678aa0d3be18bb3f01ecaa862377448ac497
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/xmlcalabash/library/XInclude.java
@@ -292,6 +292,8 @@ public boolean processStartElement(XdmNode node) throws SaxonApiException {
return false;
}
+ } else if (xi_fallback.equals(node.getNodeName())) {
+ throw new XProcException("Invalid placement for xi:fallback element");
} else {
matcher.addStartElement(node);
matcher.addAttributes(node);

0 comments on commit 1c9c678

Please sign in to comment.