aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/hybrid/binary/cdr/test.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx/hybrid/binary/cdr/test.xsd')
-rw-r--r--tests/cxx/hybrid/binary/cdr/test.xsd12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cxx/hybrid/binary/cdr/test.xsd b/tests/cxx/hybrid/binary/cdr/test.xsd
index 7a92c7e..5a2ea34 100644
--- a/tests/cxx/hybrid/binary/cdr/test.xsd
+++ b/tests/cxx/hybrid/binary/cdr/test.xsd
@@ -35,6 +35,18 @@
<element name="c" type="string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="y" type="int"/>
+
+ <!-- test default/fixed values -->
+
+ <attribute name="df1" type="int" default="123"/>
+ <attribute name="df2" type="int" default="123"/>
+ <attribute name="ff1" type="int" fixed="123"/>
+ <attribute name="ff2" type="int" fixed="123" use="required"/>
+
+ <attribute name="dv1" type="NMTOKENS" default="aaa bbb ccc"/>
+ <attribute name="dv2" type="NMTOKENS" default="aaa bbb ccc"/>
+ <attribute name="fv1" type="NMTOKENS" fixed="aaa bbb ccc"/>
+ <attribute name="fv2" type="NMTOKENS" fixed="aaa bbb ccc" use="required"/>
</extension>
</complexContent>
</complexType>