diff options
author | Remi Gacogne <rgacogne-xml@coredump.fr> | 2012-05-11 15:31:05 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-05-11 15:31:05 +0800 |
commit | 4609e6c980b256e4115d4b7e1227f59870465995 (patch) | |
tree | 1ffa005f813b492430f6680562a316782cf38d89 /result | |
parent | 39d027cdb74371d64f68dc488556be41e1d14546 (diff) | |
download | libxml2-4609e6c980b256e4115d4b7e1227f59870465995.tar.gz |
XSD: optional element in complex type extension
For https://bugzilla.gnome.org/show_bug.cgi?id=609796
Libxml2 fails to validate an instance document against a schema if an element
whose type is a complex extension of some base type with an optional child
element and that child element is not specified in the instance document. For
example, suppose I have some complex type BaseType that is defined to have one
child element in a sequence group that has minOccurs set to 0
Diffstat (limited to 'result')
-rw-r--r-- | result/schemas/complex-type-extension_0_0 | 1 | ||||
-rw-r--r-- | result/schemas/complex-type-extension_0_0.err | 0 |
2 files changed, 1 insertions, 0 deletions
diff --git a/result/schemas/complex-type-extension_0_0 b/result/schemas/complex-type-extension_0_0 new file mode 100644 index 00000000..ef152153 --- /dev/null +++ b/result/schemas/complex-type-extension_0_0 @@ -0,0 +1 @@ +./test/schemas/complex-type-extension_0.xml validates diff --git a/result/schemas/complex-type-extension_0_0.err b/result/schemas/complex-type-extension_0_0.err new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/result/schemas/complex-type-extension_0_0.err |