On 2010-07-20 at 12:56:45 +0100,
Richard Quadling <[email protected]> wrote:

> On 20 July 2010 02:40, Dan Sommers <[email protected]> wrote:

> > ยน http://www.w3.org/TR/xmlschema-2/#decimal
> 
> http://www.w3.org/TR/xmlschema-2/#double, not decimal.

I should have included both links:  The spec for double refers to the
spec for decimal, and it's the decimal spec that allows the "." in the
mantissa portion of a double.

> As 'e' is an optional part of a double, can you try a different value.
> Something like 'FooBar'. Anything really.

$ xmllint --schema t.xsd t.xml
<?xml version="1.0"?>
<t>FooBar</t>
t.xml:1: element t: Schemas validity error : Element 't': 'FooBar' is not a 
valid value of the atomic type 'xs:double'.
t.xml fails to validate

Thanks,
Dan
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to