1

I am using an assertion in my XSD. <xs:assert> is not supporting in my visual studio.

 <xs:assert test="count(event[@type='system']) = 1"/>

enter image description here

kjhughes
  • 106,133
  • 27
  • 181
  • 240
  • Microsoft's XML tools have hardly progressed in 20 years. If you want to use any of the more recent W3C standards, you need to use third-party tools. – Michael Kay May 31 '22 at 15:38

1 Answers1

1

xs:assert requires XSD 1.1; it is not supported in XSD 1.0.

See also

kjhughes
  • 106,133
  • 27
  • 181
  • 240