net.sf.saxon.s9api.XdmAtomicValue Java Examples
The following examples show how to use
net.sf.saxon.s9api.XdmAtomicValue.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyConcatExtensionFunction.java From kite with Apache License 2.0 | 5 votes |
@Override public XdmValue call(XdmValue[] arguments) throws SaxonApiException { StringBuilder buf = new StringBuilder(); for (XdmValue argument : arguments) { XdmSequenceIterator iter = argument.iterator(); while (iter.hasNext()) { buf.append(iter.next().getStringValue()); } } return new XdmAtomicValue(buf.toString()); }
Example #2
Source File: XQueryProcessor.java From spark-xml-utils with Apache License 2.0 | 2 votes |
/** * Set the external variable. The value should be a String. * * @param name Name of the external variable in the XQuery * @param value Value for the external variable */ public void setExternalVariable(String name, String value) { eval.setExternalVariable(new QName(name), new XdmAtomicValue(value)); }