aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/default
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-15 14:30:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-15 14:30:43 +0200
commitb3af9aa74169dc35cddfe0f08104d650e43d38b7 (patch)
tree2fc20508ffd845075286b164542dbb978266b100 /tests/cxx/tree/default
parentaf83df9be50a9383d0c54fb24b8e486a658a2a02 (diff)
Explicitly create an ultimate base instance for default/fixed values
Diffstat (limited to 'tests/cxx/tree/default')
-rw-r--r--tests/cxx/tree/default/general/test.xsd6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/cxx/tree/default/general/test.xsd b/tests/cxx/tree/default/general/test.xsd
index e9a3bcb..f5bca49 100644
--- a/tests/cxx/tree/default/general/test.xsd
+++ b/tests/cxx/tree/default/general/test.xsd
@@ -77,6 +77,10 @@
<!-- date/time types -->
+ <simpleType name="date-derived">
+ <restriction base="date"/>
+ </simpleType>
+
<complexType name="date-test">
<attribute default="2009-03-31" name="a" type="date"/>
<attribute default="2009-03-31Z" name="b" type="date"/>
@@ -84,7 +88,7 @@
<attribute default="2009-03-31-00:00" name="d" type="date"/>
<attribute default="2009-03-31+12:30" name="e" type="date"/>
<attribute default="2009-03-31-12:30" name="f" type="date"/>
- <attribute default="2002009-03-31-12:30" name="g" type="date"/>
+ <attribute default="2002009-03-31-12:30" name="g" type="t:date-derived"/>
</complexType>
<complexType name="time-test">