validate:xsd-report() is not emitting warnings

Wednesday, 5 June 2024 · 2 messages
Y
ykhabins5 Jun 2024 18:10 #

Mr. Grun,

I tested the latest BaseX 11.0 beta build 9182be0.

It emits the following result for the provided test case:

<report>
  <status>valid</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>

We are almost there. There is one more wrinkle to smooth out. Messages' level attribute value became UPPER-CASED: level="ERROR" level="WARNING"

That level attribute values shall be kept as before: level="Error" level="Warning"

Otherwise, it breaks existing XQuery analysis of the XSD validation.

Regards, Yitzhak Khabinsky

Y
ykhabins5 Jun 2024 18:54 #

Mr. Grun,

I tested the latest BaseX 11.0 beta build f3a5359. It passed all the test cases on my side.

Thanks a lot!

Regards, Yitzhak Khabinsky


⚡Generated with XQuery