SAXONICA |
There is a new option setXMLVersion()
in the
Configuration
, which defaults to 1.0.
This configuration setting affects:
validation of names used in XQuery and XPath expressions, including names of elements, attributes, functions, variables, and types
validation of names of constructed elements, attributes, and processing instructions in XQuery and XSLT
schema validation of values of type NCName, QName, NOTATION, and ID
permitted names of stylesheet objects such as keys, templates, decimal-formats, output declarations, and output methods
characters considered valid in the source of an XQuery query
characters considered valid in the result of the functions codepoints-to-string() and unparsed-text()
characters considered valid in the result of certain Saxon extension functions
the way in which line endings in XQuery queries are normalized
the default version used by the serializer (with output method XML)
The Saxon configuration setting has no effect on the XML parser. If XML 1.1 documents are supplied as input
to Saxon, then you MUST call config.setXMLVersion(Configuration.XML11)
(or use -1.1 on the command
line). Saxon won't necessarily detect the error if you fail to do so (especially if the documents don't use any
XML 1.1 features).
Note that there are a few incompatibilities introduced by this change, for example XQuery will only accept XML 1.1 line endings if the -1.1 flag is set.