xsd converter error message could be improved
Submitted by Kristof Szabados
Link to original bug (#518028)
Description
When I give the xsd converter this content: "
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://www.example.org/union"
targetNamespace="http://www.example.org/union">
<xsd:simpleType name="e10b"> <xsd:restriction base="xsd:float"> </xsd:restriction> </xsd:simpleType> </xsd:schema> "
I get an error message like this: "(in line 8): Element '{http://www.w3.org/2001/XMLSchema}restriction': The content is not valid. Expected is (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))."
Here the actual issue is that "maxInclusve" should have been written as "xsd:maxInclusive". Would it be possible to create an error message that is easier to understand?
Version: 6.2.0