Clojure Saxon wrapper
Clojure Saxon wrapper
(atomic? val)
Returns true if XdmItem or a subclass (XdmAtomicValue, XdmNode) is an atomic value.
Returns true if XdmItem or a subclass (XdmAtomicValue, XdmNode) is an atomic value.
(attribute? nd)
Returns true if node is attribute.
Returns true if node is attribute.
(comment? nd)
Returns true if node is comment.
Returns true if node is comment.
(compile-xml x)
Compiles XML into an XdmNode, the Saxon currency for in-memory tree representation. Takes File, URL, InputStream, Reader, or String.
Compiles XML into an XdmNode, the Saxon currency for in-memory tree representation. Takes File, URL, InputStream, Reader, or String.
(compile-xpath xpath & ns-map)
Compiles XPath expression (given as string), returns function that applies it to compiled doc or node. Takes optional map of prefixes (as keywords) and namespace URIs.
Compiles XPath expression (given as string), returns function that applies it to compiled doc or node. Takes optional map of prefixes (as keywords) and namespace URIs.
(compile-xquery xquery & ns-map)
Compiles XQuery expression (given as string), returns function that applies it to compiled doc or node. Takes optional map of prefixes (as keywords) and namespace URIs.
Compiles XQuery expression (given as string), returns function that applies it to compiled doc or node. Takes optional map of prefixes (as keywords) and namespace URIs.
(compile-xslt f)
Compiles stylesheet (from anything convertible to javax. xml.transform.Source), returns function that applies it to compiled doc or node.
Compiles stylesheet (from anything convertible to javax. xml.transform.Source), returns function that applies it to compiled doc or node.
(document? nd)
Returns true if node is document.
Returns true if node is document.
(element? nd)
Returns true if node is element.
Returns true if node is element.
(namespace? nd)
Returns true if node is namespace.
Returns true if node is namespace.
(node-kind nd)
Returns keyword corresponding to node's kind.
Returns keyword corresponding to node's kind.
(node-name nd)
Returns the name of the node (as QName).
Returns the name of the node (as QName).
(node-ns q)
Returns the namespace of the node or node name.
Returns the namespace of the node or node name.
(parent-node nd)
Returns parent node of passed node.
Returns parent node of passed node.
Returns the Saxon Processor object, the thread-safe generator class for documents, stylesheets, & XPaths. Creates & defs the Processor if not already created.
Returns the Saxon Processor object, the thread-safe generator class for documents, stylesheets, & XPaths. Creates & defs the Processor if not already created.
(processing-instruction? nd)
Returns true if node is processing instruction.
Returns true if node is processing instruction.
(query q nd)
(query q nses nd)
Run query on node. Arity of two accepts (1) string or compiled query fn & (2) node; arity of three accepts (1) string query, (2) namespace map, & (3) node.
Run query on node. Arity of two accepts (1) string or compiled query fn & (2) node; arity of three accepts (1) string query, (2) namespace map, & (3) node.
(set-config-property! prop value)
Sets a configuration property on the Saxon Processor object. Takes keyword representing a net.sf.saxon.FeatureKeys field and the value to be set, e.g. (set-config-property! :line-numbering true) Lets errors bubble up.
Sets a configuration property on the Saxon Processor object. Takes keyword representing a net.sf.saxon.FeatureKeys field and the value to be set, e.g. (set-config-property! :line-numbering true) Lets errors bubble up.
(with-default-ns nmspce q)
Returns XQuery string with nmspce declared as default element namespace.
Returns XQuery string with nmspce declared as default element namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close