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
01c7b2b8e7
schema: fix error attempting to unmarshal a non-pointer
2017-09-04 11:08:29 -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
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
7c630b0030
schema: update prefix for http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
...
Use the same prefix that Word uses
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
105ef6916e
document: read/restore all contents of a Word 2016 file
...
Adds support for serializing/deserializing of:
- webSettings
- fontTable
- endnotes
- footnotes
- themes
- optional numbering
2017-08-29 22:40:44 -05:00
Todd
4bd04dd2e5
initial commit
2017-08-29 15:06:08 -05:00