aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/hybrid/binary/xdr/test.xsd
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-04-02 12:22:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-04-02 12:22:38 +0200
commit8336dd4c16d4885989a6d8f0c83a4b401f5cb63b (patch)
tree26ca613e7f3a3fe9fb75bf5bb3b65503661e0ebf /tests/cxx/hybrid/binary/xdr/test.xsd
parente4c22d3686da0e973e21eae0561c1169c0eeff36 (diff)
Add support for attributes with default and fixed values.
tests/cxx/hybrid/default: new test tests/cxx/hybrid/binary: update to test default and fixed values
Diffstat (limited to 'tests/cxx/hybrid/binary/xdr/test.xsd')
-rw-r--r--tests/cxx/hybrid/binary/xdr/test.xsd12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cxx/hybrid/binary/xdr/test.xsd b/tests/cxx/hybrid/binary/xdr/test.xsd
index 7a92c7e..5a2ea34 100644
--- a/tests/cxx/hybrid/binary/xdr/test.xsd
+++ b/tests/cxx/hybrid/binary/xdr/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>