Permalink
Browse files

Fix issue #238 by adding support for @cx:message on steps

  • Loading branch information...
ndw committed Aug 14, 2016
1 parent a5ff98e commit 976688081404c56d881da48ef514f30d47a039d2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/main/java/com/xmlcalabash/library/DefaultStep.java
@@ -45,6 +45,7 @@
public static final QName _standalone = new QName("", "standalone");
public static final QName _undeclare_prefixes = new QName("", "undeclare-prefixes");
public static final QName _version = new QName("", "version");
public static final QName cx_message = new QName(XProcConstants.NS_CALABASH_EX, "message");
protected Logger logger = null;
private Hashtable<QName,RuntimeValue> options = null;
@@ -166,6 +167,10 @@ public void run(String addnLog) {
type = step.getType().getClarkName();
}
logger.debug("Running " + type + " " + step.getName() + addnLog);
String msg = step.getExtensionAttribute(cx_message);
if (msg != null) {
System.err.println("Message: " + msg);
}
}
public Serializer makeSerializer() {

0 comments on commit 9766880

Please sign in to comment.