Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

duration: zero value produces invalid literal #38

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

duration: zero value produces invalid literal #38

pabigot opened this issue Jun 16, 2015 · 0 comments
Milestone

Comments

@pabigot
Copy link
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 added this to the PyXB 1.2.5 milestone Sep 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant