4

I'm trying to use lxml with the xs:assert validation tag. I've tried using the example from this IBM page: http://www.ibm.com/developerworks/library/x-xml11pt2/

<xs:element name="dimension">
  <xs:complexType>
    <xs:attribute name="height" type="xs:int"/>
    <xs:attribute name="width" type="xs:int"/>
    <xs:assert test="@height < @width"/>
  </xs:complexType>
</xs:element>

It seems like lxml doesn't support XML Schema 1.1.

Can someone validate this? What XML (for Python) engine does support Schema 1.1?

Nitay
  • 3,763
  • 6
  • 32
  • 42

1 Answers1

1

The two schema processors that currently support XSD 1.1 are Xerces and Saxon - both Java based.

Michael Kay
  • 147,186
  • 10
  • 83
  • 148
  • Thanks for your answer. What about the Microsoft technologies? – Nitay Sep 27 '11 at 07:15
  • Nevermind - The Wikipedia article is pretty informative about this. Thanks. http://en.wikipedia.org/wiki/XML_Schema_(W3C)#Version_1.1 – Nitay Sep 27 '11 at 07:19