throw new TransformationException("xml.WrongContent", exArgs);
}
if (true) {
XPath2FilterContainer unionDocFilter =
XPath2FilterContainer
.newInstanceUnion(this._transformObject.getDocument(), "/");
_filterTypes.add(FUnion);
// Set root = new HashSet(); root.add(inputDoc);
HelperNodeList root = new HelperNodeList();
root.appendChild(inputDoc);
_filterNodes.add(root);
}
for (int i = 0; i < noOfSteps; i++) {
Element xpathElement =
this._transformObject.getChildElementLocalName(i,
XPath2FilterContainer.XPathFilter2NS,
XPath2FilterContainer._TAG_XPATH2);
XPath2FilterContainer xpathContainer =
XPath2FilterContainer.newInstance(xpathElement,
input.getSourceURI());
if (xpathContainer.isIntersect()) {
_filterTypes.add(FIntersect);
} else if (xpathContainer.isSubtract()) {
_filterTypes.add(FSubtract);
} else if (xpathContainer.isUnion()) {
_filterTypes.add(FUnion);
} else {
_filterTypes.add(null);
}
NodeList subtreeRoots = xPathFuncHereAPI.selectNodeList(inputDoc,
xpathContainer.getXPathFilterTextNode(),
xpathContainer.getElement());
// _filterNodes.add(XMLUtils.convertNodelistToSet(subtreeRoots));
_filterNodes.add(subtreeRoots);
}