XdmNode node = source.read();
XdmNode docelem = S9apiUtils.getDocumentElement(node);
if (XProcConstants.c_param_set.equals(docelem.getNodeName())) {
// Check the attributes...
for (XdmNode attr : new AxisNodes(docelem, Axis.ATTRIBUTE)) {
QName aname = attr.getNodeName();
if ("".equals(aname.getNamespaceURI())
|| XProcConstants.NS_XPROC.equals(aname.getNamespaceURI())) {
throw XProcException.dynamicError(14, step.getNode(), "Attribute not allowed");
}
}
for (XdmNode child : new AxisNodes(runtime, docelem, Axis.CHILD, AxisNodes.SIGNIFICANT)) {
if (child.getNodeKind() == XdmNodeKind.ELEMENT) {
if (!child.getNodeName().equals(XProcConstants.c_param)) {
throw XProcException.dynamicError(18, step.getNode(), "Element not allowed: " + child.getNodeName());
}
parseParameterNode(xstep,child);