public class XMLToJsonTransform extends SystemFunction
This exploits the stylesheets xml-to-json.xsl and xml-to-json-indent.xsl, to perform the actual conversion. These are held as resources within the Saxon jar and compiled when needed.
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_NS |
static String[] |
paramNames |
static String |
STYLESHEET_BASIC_URI |
static String |
STYLESHEET_INDENT_URI |
XsltTransformer |
transform_basic |
XsltTransformer |
transform_indent |
static String |
XML_TO_JSON |
| Constructor and Description |
|---|
XMLToJsonTransform() |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Invoke the function
|
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic static final String STYLESHEET_BASIC_URI
public static final String STYLESHEET_INDENT_URI
public static final String JSON_NS
public static final String XML_TO_JSON
public static String[] paramNames
public XsltTransformer transform_basic
public XsltTransformer transform_indent
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
Functioncontext - the XPath dynamic evaluation contextarguments - the actual arguments to be suppliedXPathException - if a dynamic error occurs within the functionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.