Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix issue #173 make sure piperack pipelines have a base URI
  • Loading branch information
ndw committed Aug 27, 2014
1 parent 30598d7 commit dfa2026
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/xmlcalabash/piperack/Pipelines.java
Expand Up @@ -101,7 +101,11 @@ protected Representation post(Representation entity, Variant variant) {
XProcRuntime runtime = new XProcRuntime(getConfiguration());

try {
XdmNode doc = runtime.parse(new InputSource(entity.getStream()));
InputSource is = new InputSource(entity.getStream());
String base = getHostRef().toString();
is.setSystemId(base + "/" + name);

XdmNode doc = runtime.parse(is);
XPipeline pipeline = runtime.use(doc);
getPipelines().put(id, new PipelineConfiguration(runtime, pipeline, expires));
} catch (Exception e) {
Expand Down

0 comments on commit dfa2026

Please sign in to comment.