Project

Profile

Help

Bug #6522

open

The documentation for Saxon\SchemaValidator is incorrect

Added by Matt Patterson 4 months ago. Updated 24 days ago.

Status:
New
Priority:
Low
Category:
Documentation
Start date:
2024-08-30
Due date:
% Done:

0%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.5
Fixed in version:
SaxonC Languages:
PHP
SaxonC Platforms:
All
SaxonC Architecture:

Description

The PHP Saxon\SchemaValidator documentation for getValidationReport() incorrectly states that the property to set to get a validation report as an XmlNode is report and not report-node. No mention is made there or in the documentation for setProperty() of the list of properties at https://www.saxonica.com/saxon-c/documentation12/index.html#!configuration/schema, which would be helpful.

Actions #1

Updated by O'Neil Delpratt 24 days ago

Looking at the live SaxonC documentation this has been resolved.

Actions #2

Updated by Debbie Lockett 24 days ago

Where are you looking O'Neil? https://www.saxonica.com/saxon-c/documentation12/index.html#!api/saxon_c_php_api/saxon_c_php_schemavalidator still says:

getValidationReport()

Get the validation report produced after validating the source document. The reporting feature is switched on by setting the 'report' property on the SchemaValidator: e.g. validator.setProperty('report', 'true'). Returns the report as an XdmNode.

i.e. 'report' has not yet been corrected to 'report-node'.

I also checked the corresponding C API and Python API documentation, and note that https://www.saxonica.com/saxon-c/doc12/html/classSchemaValidator.html#a6f630753665ec7dc169ed6ca168066b5 says:

The validation-report option must have been set to true in the properties to use this feature.

Again this should say 'report-node' not 'validation-report'.

Then referring to https://www.saxonica.com/saxon-c/doc12/html/saxonc.html#PySchemaValidator it looks like there is no such method on the PySchemaValidator (either that, or the method is undocumented). Should there be?

Please register to edit this issue

Also available in: Atom PDF