diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 15:41:36 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 15:41:36 +0100 |
commit | 018e1ba581ec6f01f069a45ec4cf89f152b44d5f (patch) | |
tree | 0e7dda4bb693a6714066fbe5efcd2f24ff7c1a65 /xsd/tests/cxx/tree/float/test.xsd | |
parent | 1c188393cd2e271ed2581471b601fb5960777fd8 (diff) |
remerge
Diffstat (limited to 'xsd/tests/cxx/tree/float/test.xsd')
-rw-r--r-- | xsd/tests/cxx/tree/float/test.xsd | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/xsd/tests/cxx/tree/float/test.xsd b/xsd/tests/cxx/tree/float/test.xsd new file mode 100644 index 0000000..c02678d --- /dev/null +++ b/xsd/tests/cxx/tree/float/test.xsd @@ -0,0 +1,74 @@ +<?xml version="1.0"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test"> + + <simpleType name="float-list"> + <list itemType="float"/> + </simpleType> + + <simpleType name="double-list"> + <list itemType="double"/> + </simpleType> + + <simpleType name="decimal-list"> + <list itemType="decimal"/> + </simpleType> + + <!-- decimal facets --> + + <simpleType name="simple"> + <restriction base="t:base-simple"> + <fractionDigits value="2"/> + </restriction> + </simpleType> + + <simpleType name="base-simple"> + <restriction base="decimal"> + <totalDigits value="4"/> + </restriction> + </simpleType> + + <complexType name="complex"> + <simpleContent> + <restriction base="t:base-complex"> + <fractionDigits value="2"/> + <totalDigits value="4"/> + <attribute name="x" type="int"/> + </restriction> + </simpleContent> + </complexType> + + <complexType name="base-complex"> + <simpleContent> + <extension base="decimal"> + <attribute name="x" type="int"/> + </extension> + </simpleContent> + </complexType> + + + <complexType name="type"> + <sequence> + <element name="float" type="float" maxOccurs="unbounded"/> + <element name="float-list" type="t:float-list"/> + <element name="double" type="double" maxOccurs="unbounded"/> + <element name="double-list" type="t:double-list"/> + <element name="decimal" type="decimal" maxOccurs="unbounded"/> + <element name="decimal-list" type="t:decimal-list"/> + + <element name="simple" type="t:simple" maxOccurs="unbounded"/> + <element name="complex" type="t:complex" maxOccurs="unbounded"/> + + </sequence> + <attribute name="f" type="float" default="12.34"/> + <attribute name="do" type="double" default="1234.1234"/> + <attribute name="de" type="decimal" default="1234.1234"/> + + <attribute name="s" type="t:simple"/> + </complexType> + + <element name="root" type="t:type"/> + + <element name="double" type="double"/> + <element name="decimal" type="decimal"/> + +</schema> |