Todd
e83404616d
Revert "schema: apply more default values"
...
This caused problems with Libre.
This reverts commit 59b2711e1b87be534c9cd3d155710d13cfe7743b.
2017-09-05 06:33:38 -05:00
Todd
59b2711e1b
schema: apply more default values
...
These are implied values as they are the defaults in the XSD
for optional attributes/elements. However I've noticed that
I keep running into issues where Mac Excel/Word fail to open
a file unless an optional default is provided.
I'll just add them all to hopefully increase compatibility and
save painful file format debugging sessions later.
2017-09-04 17:14:06 -05:00
Todd
45fe2ad00c
schema: fix element with duplicate attrs on synthetic elements
2017-09-04 15:01:14 -05:00
Todd
b959b47d29
schema: fix serialization of unions of native go types
...
We were wrapping the union with an extra element that
wasn't needed.
2017-09-04 15:01:14 -05:00
Todd
4004c7d49d
schema: remove unused code
2017-09-04 11:08:29 -05:00
Todd
bbc2b9fde2
schema: add marshal/unmarshal on a newly created type
2017-09-02 13:13:12 -05:00
Todd
a9cf6c7867
schema: cleanup
...
- force qualify spreadsheet drawing elements
- treat EG_RPrBase as singular, meaning we can move it's elements up a level
2017-09-02 11:16:56 -05:00
Todd
3e3b42c2a9
schema: remove some unneeded conversions
2017-09-01 19:26:26 -05:00
Todd
7d798273eb
document: support round tripping unknown elements on document/settings
2017-09-01 17:13:33 -05:00
Todd
f28708bf97
schema: add better error messages when unmarshaling an unknown element
2017-09-01 17:13:33 -05:00
Todd
35912f079b
schema: add comments to validate methods
2017-09-01 15:42:20 -05:00
Todd
d1d44902d1
schema: remove un-needed attr clearing
2017-09-01 15:42:20 -05:00
Todd
84b30dd75a
schema: handle nested choices
2017-08-31 22:17:52 -05:00
Todd
16cda3ea7a
schema: treat xsd:integer as 64 bit
...
It's arbitrary precision per XSD, so may have to
change again. Treating it as a 64 bit value for now.
2017-08-31 18:12:29 -05:00
Todd
5f7ff0029f
schema: add constructor tests
2017-08-30 20:17:09 -05:00
Todd
2d3cc73ea6
schema: initialize non-optional members in constructors
...
- initialize enums
- initialize native types using constraints
- initialize patterns
2017-08-30 20:17:09 -05:00
Todd
8e3907464b
schema: handle occurs=multi sequence elements
2017-08-29 22:40:44 -05:00
Todd
366c3b51ec
schema: rework xsd:any handling
2017-08-29 16:55:03 -05:00
Todd
4bd04dd2e5
initial commit
2017-08-29 15:06:08 -05:00