duration: zero value produces invalid literal #38

Closed
pabigot opened this Issue Jun 16, 2015 · 0 comments

Projects

None yet

1 participant

@pabigot
Owner
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.

<period>P</period>

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

<period>P0D</period>
@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