|
Re: Default values of attributes [message #26763 is a reply to message #26677] |
Sun, 24 August 2003 12:57 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Hayden,
Your right, and I didn't know that. Please open a bugzilla defect and I'll
fix it for the next driver It's a simple change to
org.eclipse.xsd.impl.type.XSDBooleanType.
Hayden Marchant wrote:
> I am trying to parse an XSD containing the following attribute definition,
> and am getting an error:
>
> <xs:attribute name="mustUnderstand" default="0">
> <xs:simpleType>
> <xs:restriction base="xs:boolean">
> <xs:pattern value="0|1"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
>
> The same error also occurs with:
>
> <xs:attribute name="mustUnderstand" type="xs:boolean" default="0" />
>
> The error is:
> XSD: The value '0' of attribute 'default' must be of type
> 'http://www.w3.org/2001/XMLSchema#boolean'
>
> The schema I'm trying to parse is the official W3C Soap:
> http://www.w3.org/2001/06/soap-envelope.
>
> Any reason why this shouldn't work. I looked at
> http://www.w3.org/TR/xmlschema-2/#boolean and it seems that this it's
> syntax to refer to a boolean literal as 0 or 1. After changing the default
> to false or true, it parsed ok.
>
> Thanks,
> Hayden Marchant
|
|
|
Re: Default values of attributes [message #576238 is a reply to message #26677] |
Sun, 24 August 2003 12:57 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Hayden,
Your right, and I didn't know that. Please open a bugzilla defect and I'll
fix it for the next driver It's a simple change to
org.eclipse.xsd.impl.type.XSDBooleanType.
Hayden Marchant wrote:
> I am trying to parse an XSD containing the following attribute definition,
> and am getting an error:
>
> <xs:attribute name="mustUnderstand" default="0">
> <xs:simpleType>
> <xs:restriction base="xs:boolean">
> <xs:pattern value="0|1"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
>
> The same error also occurs with:
>
> <xs:attribute name="mustUnderstand" type="xs:boolean" default="0" />
>
> The error is:
> XSD: The value '0' of attribute 'default' must be of type
> 'http://www.w3.org/2001/XMLSchema#boolean'
>
> The schema I'm trying to parse is the official W3C Soap:
> http://www.w3.org/2001/06/soap-envelope
>
> Any reason why this shouldn't work. I looked at
> http://www.w3.org/TR/xmlschema-2/#boolean and it seems that this it's
> syntax to refer to a boolean literal as 0 or 1. After changing the default
> to false or true, it parsed ok.
>
> Thanks,
> Hayden Marchant
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03268 seconds