dtm32236
01-13-2009, 12:11 PM
So, I have this following line of code in a .xsd file:
<xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
and I want to limit this to two decimal points.
So I tried this:
<xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:precision value="5"/>
<xs:scale value=”2”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
But this doesn't seem to work.
Does anyone know why this is?
(I'm just starting to learn this, so please excuse any stupid questions).
Thanks a lot!
<xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
and I want to limit this to two decimal points.
So I tried this:
<xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:precision value="5"/>
<xs:scale value=”2”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
But this doesn't seem to work.
Does anyone know why this is?
(I'm just starting to learn this, so please excuse any stupid questions).
Thanks a lot!