all, i have written the following schema and want to use it to pass the quote value to 2 decimal places. I belive i have the correct code but it doesnt seem to change the number of decimal places at all. It seems that it is ignoring the fractiondigits value. Please help its driving me mad
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs=" name="Wickens">
<xs:complexType>
<xs:sequence>
<xs:element name="test1" type="xs:string"/>
<xs:element name="quotevalue">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="Wickens" type="xs:string" use="required"/>
</xs:complexType>
</xs:element></xs:schema>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs=" name="Wickens">
<xs:complexType>
<xs:sequence>
<xs:element name="test1" type="xs:string"/>
<xs:element name="quotevalue">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="Wickens" type="xs:string" use="required"/>
</xs:complexType>
</xs:element></xs:schema>