-ns command line option for XQuery?
Replies (1)
Please register to reply
Added by Martin Honnen almost 2 years ago
I am trying to process some HTML using SaxonCS 12 and --allowSyntaxExtensions:on
and xquery version '4.0'
to use the experimental XPath 4.0 function parse-html
. As HTML elements returned by that functions are put into the XHTML namespace I thought I could benefit from Saxon's support for e.g. -ns:##html5
but it seems for query
Saxon tells me Command line option -ns is not recognized
.
Perhaps this is worth a feature request?
I go with e.g. *:h2
in the meantime.
I have added the -ns option to the Query command (and underlying support in the s9api XQueryCompiler, StaticQueryContext, and QueryModule) for 12.3 and later releases.
Please register to reply