Permalink
Browse files

Merge pull request #146 from gimsieke/patch-2

Pass parameters on p:validate-with-schematron to all Schematron phases.
  • Loading branch information...
ndw committed May 6, 2014
2 parents 58c03ea + a277a80 commit 32a3c01327f38b806f601de444286f0ccca059a3
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/xmlcalabash/library/ValidateWithSCH.java
@@ -151,6 +151,10 @@ public void run() throws SaxonApiException {
compiler.setSchemaAware(schemaAware);
exec = compiler.compile(compiledSchema.asSource());
transformer = exec.load();
for (QName name : params.keySet()) {
RuntimeValue v = params.get(name);
transformer.setParameter(name, new XdmAtomicValue(v.getString()));
}
transformer.setInitialContextNode(sourceXML);
result = new XdmDestination();
transformer.setDestination(result);

0 comments on commit 32a3c01

Please sign in to comment.