From 4c8879e628cf883cae1eebac58dbcd12ff85de12 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 8 Dec 2011 09:00:51 -0800 Subject: [PATCH] Added support for cx:saxon-version and cx:saxon-edition system properties --- src/com/xmlcalabash/functions/SystemProperty.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/xmlcalabash/functions/SystemProperty.java b/src/com/xmlcalabash/functions/SystemProperty.java index f6ebfa36..ca13456e 100644 --- a/src/com/xmlcalabash/functions/SystemProperty.java +++ b/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; } }