Page tree

The following XML schema types are not supported.  For each an alternate type or construct is listed which should be used instead:

Unsupported TypeAlternate Type
decimaldouble
choiceMust be replaced with one of the elements from the choice
integerint

 

The following XML schema types are not supported. For each an alternate type or construct is listed which should be used instead:


decimal: decimal type is not supported. Use double instead.

Example: The following schema defines a BookSpecification element which has a Value of type decimal. As defined it cannot be used with RBA.

<xs:element name="BookSpecification">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Value">
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:attribute name="UOM" type="xs:string" use="required" />
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

The decimal type must be converted to a double:

<xs:element name="BookSpecification">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Value">
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:double">
                <xs:attribute name="UOM" type="xs:string" use="required" />
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

 

choice: choice element is not supported. Use a single element from the choice instead.

Example: The following schema has a choice element in it. As defined it cannot be used with RBA.

<xs:element name="SpecComponent">
         <xs:complexType>
                <xs:sequence>
                      <xs:element ref="ProductIdentifier"/>
                      <xs:element ref="ProductDescription" minOccurs="0" maxOccurs="unbounded"/>
                      <xs:choice minOccurs="0">
                             <xs:element ref="PressComponent"/>
                             <xs:element ref="NonPressComponent"/>
                      </xs:choice>
                      <xs:element ref="AdditionalText" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
         </xs:complexType>
  </xs:element>

The choice must be removed and replaced with one of the elements before it can be used in RBA.

  <xs:element name="SpecComponent">
         <xs:complexType>
                <xs:sequence>
                      <xs:element ref="ProductIdentifier"/>
                      <xs:element ref="ProductDescription" minOccurs="0" maxOccurs="unbounded"/>
                      <xs:element ref="PressComponent"/>
                      <xs:element ref="AdditionalText" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
         </xs:complexType>
  </xs:element>


integer: integer type is not supported. Use int instead.

Example: The following schema defines a JobData element which has a Qty of type integer.  As defined it cannot be used with RBA.

<element name="JobData">
         <complexType>
                <all minOccurs="1">
                      <element name="JobName" type="string"/>
                      <element name="N-up" type="string"/>
                      <element name="Qty" type="integer"/>
                </all>
         </complexType>
  </element>

The integer type must be converted to int.

<element name="JobData">
         <complexType>
                <all minOccurs="1">
                      <element name="JobName" type="string"/>
                      <element name="N-up" type="string"/>
                      <element name="Qty" type="int"/>
                </all>
         </complexType>
  </element>

  • No labels