Skip to content

Commit

Permalink
More updates for issue #189: support p:pipeline as an alias for p:dec…
Browse files Browse the repository at this point in the history
…lare-step; output profile calls for custom step invocations
  • Loading branch information
ndw committed Feb 5, 2015
1 parent fff0e91 commit 294f6e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/xmlcalabash/core/XProcRuntime.java
Expand Up @@ -156,6 +156,7 @@ public class XProcRuntime {
private QName profileLine = new QName("", "line");
private QName profileTime = new QName("http://xmlcalabash.com/ns/profile", "time");
private String p_declare_step_clark = XProcConstants.p_declare_step.getClarkName();
private String p_pipeline_clark = XProcConstants.p_pipeline.getClarkName();

public XProcRuntime(XProcConfiguration config) {
this.config = config;
Expand Down Expand Up @@ -964,7 +965,7 @@ public void start(XStep step) {
}

String name = step.getType().getClarkName();
if (p_declare_step_clark.equals(name)
if ((p_declare_step_clark.equals(name) || p_pipeline_clark.equals(name))
&& step.getType() != null
&& step.getStep().getDeclaredType() != null) {
profileWriter.addAttribute(profileType, step.getStep().getDeclaredType().getClarkName());
Expand Down
2 changes: 2 additions & 0 deletions src/com/xmlcalabash/runtime/XPipelineCall.java
Expand Up @@ -90,7 +90,9 @@ public void run() throws SaxonApiException {
}
}

runtime.start(this);
newstep.run();
runtime.finish(this);

}
}

0 comments on commit 294f6e2

Please sign in to comment.