Permalink
Browse files

Fix issue #31, allow XSLT 3.0 stylesheets if Saxon PE or EE is being …

…used; generally relax checking for XSLT version
  • Loading branch information...
ndw committed Feb 20, 2012
1 parent ca703a2 commit 27a3184f61ba06b9b6dd9676e19fcbd9f01ec579
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/com/xmlcalabash/library/XSLT.java
@@ -143,9 +143,13 @@ public void run() throws SaxonApiException {
version = getOption(_version).getString();
}
if (!"1.0".equals(version) && !"2.0".equals(version)) {
throw XProcException.stepError(38, "XSLT version '" + version + "' is not supported.");
if ("3.0".equals(version) && Configuration.softwareEdition.toLowerCase().equals("he")) {
throw XProcException.stepError(38, "XSLT version '" + version + "' is not supported (Saxon PE or EE processor required).");
}
// We used to check if the XSLT version was supported, but I've removed that check.
// If it's not supported by Saxon, we'll get an error from Saxon. Otherwise, we'll
// get the results we get.
if ("1.0".equals(version) && defaultCollection.size() > 1) {
throw XProcException.stepError(39);

0 comments on commit 27a3184

Please sign in to comment.