[lxml-dev] [objectify] patch/changes proposal: xsiannotate, deannotate

jholg at gmx.de jholg at gmx.de
Wed Apr 11 09:12:37 CEST 2007


Hi Stefan,

> and cleaned it up to match my idea of what you were going after. The new
> patch
> is attached, please verify that this is what you wanted.

Just tested the new patch and works fine for me.

> Have you checked what the XML Schema datatypes spec says here? I know that
> C
> doesn't really define an int across platforms, but they do, right?

Right:
"""
[Definition:]   int is ·derived· from long by setting the value of ·maxInclusive· to be 2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int is long.
...
"""
I've taken the Schema types <--> Python type mapping from the XML Schema Datatypes spec. The "widest" or least restricted Schema type is the first in each type registration, e.g. "string" for the Schema types that are string beasts.

Thanks a lot,
Holger



-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the lxml-dev mailing list