validate:xsd-report() is not emitting warnings

Wednesday, 5 June 2024 · 2 messages
CG
Christian Grünin reply to ykhabins, 5 Jun 2024, 17:025 Jun 2024 15:31 #
…makes sense. A new snapshot is online, which only assigns the 'invalid' status when errors or fatal errors are found.
Quoted text · PM · 36 lines
On Wed, Jun 5, 2024 at 3:18 PM <ykhabins at bellsouth.net> wrote: > Mr. Grun, > > Thanks a lot for such a such quick turnaround. > > I tested the latest BaseX 11.0 beta build 88ebdb9. > > It emits the following result for the provided test case: > <report> > <status>invalid</status> > <message level="Warning" line="12" column="40" > url="file:/C:/Users/i300179/Downloads/Warning.xsd">FacetsContradict: For > simpleType definition '#AnonType_ADDR_TYPE', the enumeration value '' > contradicts with value of 'length' facet.</message> > </report> > > There is one more outstanding issue to resolve. > A logic for the final XSD validation result needs to be adjusted. > > 1) Messages with the attribute level="Warning" shall be NOT counted as > invalid! > As end result: <status>valid</status> > 2) Messages with the attribute level="Error" shall be counted as a failed > validation. > As end result: <status>invalid</status> > > Such behavior would be consistent with the Oxygen XML IDE validation > outcome. > > > > Regards, > Yitzhak Khabinsky > > >
Y
ykhabins5 Jun 2024 17:02 #
Mr. Grun, Thanks a lot for such a such quick turnaround. I tested the latest BaseX 11.0 beta build 88ebdb9. It emits the following result for the provided test case:
<report>
  <status>invalid</status>
  <message level="Warning" line="12" column="40"
url="file:/C:/Users/i300179/Downloads/Warning.xsd">FacetsContradict: For
simpleType definition '#AnonType_ADDR_TYPE', the enumeration value ''
contradicts with value of 'length' facet.</message>
</report>
There is one more outstanding issue to resolve. A logic for the final XSD validation result needs to be adjusted. 1) Messages with the attribute level="Warning" shall be NOT counted as invalid! As end result: <status>valid</status> 2) Messages with the attribute level="Error" shall be counted as a failed validation. As end result: <status>invalid</status> Such behavior would be consistent with the Oxygen XML IDE validation outcome. Regards, Yitzhak Khabinsky

⚡Generated with XQuery