I’m working on a project where I am creating custom schemas.
- Take DTD in XML Spy, create W3C schema. This produces a Schema with all datatypes = string. This will compile just perfect in IS4.6.
- Change various datatypes (currency, measurements are data type = decimal). Put contraints in. IS4.6 will not compile.
Here are the error messages. It makes absolutely no sense, because I have 22 instances of data type Integer where maxInclusive=“999” with no problem. Does anyone have any ideas? I have forwarded to webMethods and hope to hear something soon, but I am really behind on this project.
ERRORS (and the little piece of schema code):
Success: false
Error: 0
identifier: /schema/element[@name=“CCTICode”]
source: ----- Source -----
<xs:restriction base="xs:integer">
<xs:minInclusive fixed="false" value="1"/>
<xs:maxInclusive fixed="false" value="99"/>
</xs:restriction>
errorCode: XSDC-008
errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmDecimal throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet
<xs:element name=“CCTICode”>
xs:simpleType
<xs:restriction base=“xs:integer”>
<xs:minInclusive value=“1”/>
<xs:maxInclusive value=“99”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Error: 1
identifier: /schema/element[@name=“CallOffLineItemNumber”]
source: ----- Source -----
<xs:restriction base="xs:integer">
<xs:minInclusive fixed="false" value="1"/>
<xs:maxInclusive fixed="false" value="999"/>
</xs:restriction>
errorCode: XSDC-008
errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmDecimal throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet
<xs:element name=“CallOffLineItemNumber”>
xs:simpleType
<xs:restriction base=“xs:integer”>
<xs:minInclusive value=“1”/>
<xs:maxInclusive value=“999”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Error: 2
identifier: /schema/element[@name=“PurchaseOrderLineItemNumber”]
source: ----- Source -----
<xs:restriction base="xs:integer">
<xs:minInclusive fixed="false" value="1"/>
<xs:maxInclusive fixed="false" value="999"/>
</xs:restriction>
errorCode: XSDC-008
errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmDecimal throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet
<xs:element name=“PurchaseOrderLineItemNumber”>
xs:simpleType
<xs:restriction base=“xs:integer”>
<xs:minInclusive value=“1”/>
<xs:maxInclusive value=“999”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Error: 3
identifier: /schema/element[@name=“RFQLineItemNumber”]
source: ----- Source -----
<xs:restriction base="xs:integer">
<xs:minInclusive fixed="false" value="1"/>
<xs:maxInclusive fixed="false" value="999"/>
</xs:restriction>
errorCode: XSDC-008
errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmDecimal throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet
<xs:element name=“RFQLineItemNumber”>
xs:simpleType
<xs:restriction base=“xs:integer”>
<xs:minInclusive value=“1”/>
<xs:maxInclusive value=“999”/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Error: 4
identifier: /schema/element[@name=“ReamType”]
source: ----- Source -----
<xs:restriction base="xs:integer">
<xs:minInclusive fixed="false" value="1"/>
<xs:maxInclusive fixed="false" value="999"/>
</xs:restriction>
errorCode: XSDC-008
errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmDecimal throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet
<xs:element name=“ReamType”>
xs:simpleType
<xs:restriction base=“xs:integer”>
<xs:minInclusive value=“1”/>
<xs:maxInclusive value=“999”/>
</xs:restriction>
</xs:simpleType>
</xs:element>