Skip to content
Permalink
Browse files

Output the href value used on the p:store step as part of the debug m…

…essage that traces step execution
  • Loading branch information
ndw committed Feb 10, 2015
1 parent c432737 commit 01907223f20faf2d267923ad30043d308e8c432b
Showing with 7 additions and 4 deletions.
  1. +5 −1 src/com/xmlcalabash/library/DefaultStep.java
  2. +2 −3 src/com/xmlcalabash/library/Store.java
@@ -155,13 +155,17 @@ public void info(XdmNode node, String message) {
}

public void run() throws SaxonApiException {
run("");
}

public void run(String addnLog) {
String type = null;
if (XProcConstants.NS_XPROC.equals(step.getType().getNamespaceURI())) {
type = step.getType().getLocalName();
} else {
type = step.getType().getClarkName();
}
logger.debug("Running " + type + " " + step.getName());
logger.debug("Running " + type + " " + step.getName() + addnLog);
}

public Serializer makeSerializer() {
@@ -84,14 +84,13 @@ public void reset() {
}

public void run() throws SaxonApiException {
super.run();
RuntimeValue hrefOpt = getOption(_href);
super.run(": href=" + hrefOpt.getValue().toString());

if (runtime.getSafeMode()) {
throw XProcException.dynamicError(21);
}

RuntimeValue hrefOpt = getOption(_href);

XdmNode doc = source.read();

if (doc == null || source.moreDocuments()) {

0 comments on commit 0190722

Please sign in to comment.
You can’t perform that action at this time.