Permalink
Browse files

Added support for cx:saxon-version and cx:saxon-edition system proper…

…ties
  • Loading branch information...
1 parent 5d4f86b commit 4c8879e628cf883cae1eebac58dbcd12ff85de12 @ndw committed Dec 8, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/xmlcalabash/functions/SystemProperty.java
View
4 src/com/xmlcalabash/functions/SystemProperty.java
@@ -128,6 +128,10 @@ public SequenceIterator call(SequenceIterator[] arguments, XPathContext context)
value = runtime.getAllowGeneralExpressions() ? "true" : "false";
} else if ("xpointer-on-text".equals(local)) {
value = runtime.getAllowXPointerOnText() ? "true" : "false";
+ } else if ("saxon-version".equals(local)) {
+ value = runtime.getConfiguration().getProcessor().getSaxonProductVersion();
+ } else if ("saxon-edition".equals(local)) {
+ value = runtime.getConfiguration().saxonProcessor;
}
}

0 comments on commit 4c8879e

Please sign in to comment.