summaryrefslogtreecommitdiff
path: root/test/schemas/decimal-1.xsd
blob: 830ca3e60c44586e1c4ac326c98aaf4e7f713f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	
	<xsd:simpleType name="myDecimal">
		<xsd:restriction base="xsd:decimal">			
			<xsd:totalDigits value="18"/>			
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:element name="foo">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="val" type="myDecimal" maxOccurs="unbounded"/>
				<xsd:element name="ref" type="myDecimal" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>

		<!--xsd:key name="myKey">
			<xsd:selector xpath="val"/>
			<xsd:field xpath="."/>
		</xsd:key>

		<xsd:keyref name="myKeyRef" refer="myKey">
			<xsd:selector xpath="ref"/>
			<xsd:field xpath="."/>
		</xsd:keyref-->
	</xsd:element>

</xsd:schema>