Bug #6589
closedClarify in the documentation where to find serialization parameters
100%
Description
Following the resolution of bug #6588 it would be good to make the clear in the documentation where the user can find the list of serialization parameters they can use.
Updated by O'Neil Delpratt 2 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Applies to branch trunk added
- Fix Committed on Branch 12, trunk added
Some more text and link to the available parameters (i.e. https://www.saxonica.com/documentation12/index.html#!extensions/output-extras) has been added in the documentation. This will be available here: https://www.saxonica.com/saxon-c/documentation12/index.html#!configuration/xslt
Updated by Debbie Lockett 19 days ago
- Status changed from Resolved to In Progress
I've just committed a further update for the SaxonC documentation: to include a note about the fact that Clark format is used for the names of serialization parameters in non-null namespaces. As well as updating the configuration/xslt
section, I have also added a corresponding update for the configuration/xquery
section.
But I have come across some further issues I'm not sure about. The sections configuration/xpath
and configuration/schema
, about setting parameters and properties for XPathProcessor
and SchemaValidator
respectively, also include ![serialization property]
for setProperty
- but does this actually mean anything here?
- As I understand it, the evaluate methods of
XPathProcessor
(i.e.evaluate
andevaluateSingle
) return the result as an XDM value; so does it actually mean anything to supply serialization parameters, and specify an output file usingsetProperty("o", "output.xml")
? Or are those included erroneously? - If specified, I believe an output file from
SchemaValidator
will be the successfully validated output. Can someone verify if the serialization parameters are relevant here? I'm not sure.
Updated by O'Neil Delpratt 3 days ago
Debbie Lockett wrote in #note-2:
I've just committed a further update for the SaxonC documentation: to include a note about the fact that Clark format is used for the names of serialization parameters in non-null namespaces. As well as updating the
configuration/xslt
section, I have also added a corresponding update for theconfiguration/xquery
section.But I have come across some further issues I'm not sure about. The sections
configuration/xpath
andconfiguration/schema
, about setting parameters and properties forXPathProcessor
andSchemaValidator
respectively, also include![serialization property]
forsetProperty
- but does this actually mean anything here?
I have removed the serialization property from XPathProcessor table.
- As I understand it, the evaluate methods of
XPathProcessor
(i.e.evaluate
andevaluateSingle
) return the result as an XDM value; so does it actually mean anything to supply serialization parameters, and specify an output file usingsetProperty("o", "output.xml")
? Or are those included erroneously?
I agree. I have removed this from the docs.
- If specified, I believe an output file from
SchemaValidator
will be the successfully validated output. Can someone verify if the serialization parameters are relevant here? I'm not sure.
For the SchemaValidator
it is currently not being applied but I think that maybe wrong because we should be able to serialization properties such as INDENT and omit the XML declaration.
Updated by O'Neil Delpratt 2 days ago
- Status changed from In Progress to Resolved
I have updated the java code to pick up the serialization properties in the SchemaValidator when we call setOutputFile.
Please register to edit this issue