Permalink
Browse files

Raise exception for missing class-names

  • Loading branch information...
ndw committed Jan 18, 2019
1 parent b2ac9f9 commit 10986866f2a6eb7baad2cf841ff2264bcabd7b5d
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/main/java/com/xmlcalabash/core/XProcConfiguration.java
@@ -714,26 +714,41 @@ private void parseProfile(XdmNode node) {

private void parseEntityResolver(XdmNode node) {
String value = node.getAttributeValue(_class_name);
if (value == null) {
throw new XProcException(node, "Missing required attribute: class-name");
}
entityResolver = value;
}

private void parseExtensionFunction(XdmNode node) {
String value = node.getAttributeValue(_class_name);
if (value == null) {
throw new XProcException(node, "Missing required attribute: class-name");
}
extensionFunctions.put(value, null);
}

private void parseFoProcessor(XdmNode node) {
String value = node.getAttributeValue(_class_name);
if (value == null) {
throw new XProcException(node, "Missing required attribute: class-name");
}
foProcessor = value;
}

private void parseCssProcessor(XdmNode node) {
String value = node.getAttributeValue(_class_name);
if (value == null) {
throw new XProcException(node, "Missing required attribute: class-name");
}
cssProcessor = value;
}

private void parseXProcConfigurer(XdmNode node) {
String value = node.getAttributeValue(_class_name);
if (value == null) {
throw new XProcException(node, "Missing required attribute: class-name");
}
xprocConfigurer = value;
}

0 comments on commit 1098686

Please sign in to comment.