"omit-xml-declaration", "standalone", "undeclare-prefixes", "version"};
checkAttributes(node, attributeNames , false);
for (String name : attributeNames) {
String value = node.getAttributeValue(new QName(name));
if (value == null) {
continue;
}
if ("byte-order-mark".equals(name) || "escape-uri-attributes".equals(name)
|| "include-content-type".equals(name) || "indent".equals(name)
|| "omit-xml-declaration".equals(name) || "undeclare-prefixes".equals(name)) {
checkBoolean(node, name, value);
serializationOptions.put(name, value);
} else if ("method".equals(name)) {
QName methodName = new QName(value, node);
if ("".equals(methodName.getPrefix())) {
String method = methodName.getLocalName();
if ("html".equals(method) || "xhtml".equals(method) || "text".equals(method) || "xml".equals(method)) {
serializationOptions.put(name, method);
} else {
throw new XProcException(node, "Configuration error: only the xml, xhtml, html, and text serialization methods are supported.");
}