duration: zero value produces invalid literal #38

pabigot opened this Issue Jun 16, 2015 · 0 comments


None yet

1 participant

pabigot commented Jun 16, 2015

Transcribed from: https://sourceforge.net/p/pyxb/discussion/956708/thread/68bb2a3f/

Having a duration element <xs:element name="period" type="xs:duration"/>

In case the Python datetime.timedelta is 0, then Pyxb produce the following output with doesn't validate xs:duration.


It must produce some period value containing 0, e.g.

@pabigot pabigot closed this in 6deaa4e Jun 16, 2015
@pabigot pabigot added this to the PyXB 1.2.5 milestone Sep 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment