IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
Expand all | Collapse all

XML Schema importing problem

  • 1.  XML Schema importing problem

    Posted 09/26/07 10:06 AM

    Originally posted by: john.gibby


    I'm not a XML Schema guru and am having a problem getting the following snippet to import in the Type Tree Designer:

    code <xs:simpleType name="SUTPCSType">
    <xs:annotation>
    <xs:documentation>
    Defines the datatype and length for Shipment Unit Total Pieces.
    </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:number">
    <xs:fractionDigits value="0"/>
    <xs:minInclusive value="0" />
    <xs:totalDigits value="7"/>
    </xs:restriction>
    </xs:simpleType>[/code]

    Anyone have any ideas?

    Thanks,
    John
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: XML Schema importing problem

    Posted 09/26/07 10:08 AM

    Originally posted by: john.gibby


    Actually, this is the original snippet:

    code <xs:simpleType name="SUTPCSType">
    <xs:annotation>
    <xs:documentation>
    Defines the datatype and length for Shipment Unit Total Pieces.
    </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:number">
    <xs:minInclusive value="0" />
    <xs:totalDigits value="7"/>
    </xs:restriction>
    </xs:simpleType>[/code]

    I was editing it and posted a modified version in the original post.

    Thanks,
    John
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 3.  Re: XML Schema importing problem

    Posted 09/26/07 10:49 AM

    Originally posted by: janhess


    Difficult to say without knowing what the error is.
    The full xsd might be useful. Also what version of WTX? There were problems with 8.1 and 8.1.1 with xml and importer.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: XML Schema importing problem

    Posted 09/26/07 11:08 AM
      |   view attached

    Originally posted by: john.gibby


    Attached is the XSD. I'm still using DSTX 7.5.1.

    Thanks,
    John
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 5.  Re: XML Schema importing problem

    Posted 09/26/07 11:10 AM
      |   view attached

    Originally posted by: john.gibby


    I'm really off today. First attach was edited version...

    Here is the original one.

    Thanks,
    John
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 6.  Re: XML Schema importing problem

    Posted 09/26/07 11:15 AM

    Originally posted by: janhess


    John,
    The schema is invalid. No simple type with name xs:number has been defined.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 7.  Re: XML Schema importing problem

    Posted 09/26/07 11:25 AM


  • 8.  Re: XML Schema importing problem

    Posted 09/26/07 11:26 AM

    Originally posted by: john.gibby


    What should I tell the schema author? That "number" is not a valid base datatype?

    Thanks Jan,
    John
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 9.  Re: XML Schema importing problem

    Posted 09/26/07 11:25 AM

    Originally posted by: john.gibby


    If I change the base from "number" to "positiveInteger", it imports correctly. I just don't know enough about schemas to say what could be wrong. Googling it I found one example from w3.org that is copied at various sites, but that was it. Here is the example:
    code<xs:simpleType name="farenheitWaterTemp">
    <xs:restriction base="xs:number">
    <xs:fractionDigits value="2"/>
    <xs:minExclusive value="0.00"/>
    <xs:maxExclusive value="100.00"/>
    </xs:restriction>
    </xs:simpleType>[/code]
    I tried this and it didn't import either. Interestingly, where I found this at http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/ there is the following:
    NOTE: This section consists of a combination of non-normative versions of normative material from XML Schemas: Datatypes, for local cross-reference purposes, and normative material relating to the interface between schema components defined in this specification and the simple type definition component.

    I don't know what this really means, so I am still lost.

    Thanks for your help.
    John
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 10.  Re: XML Schema importing problem

    Posted 09/26/07 11:27 AM

    Originally posted by: janhess


    xs:number doesn't exist? only integer and double?
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 11.  Re: XML Schema importing problem

    Posted 09/26/07 11:58 AM

    Originally posted by: janhess


    From what I found on the web it doesn't appear to be valid. It certainly isn't for schema importer even at 8.1.0.2.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 12.  Re: XML Schema importing problem

    Posted 09/26/07 12:00 PM

    Originally posted by: john.gibby


    Thanks, I think we are on the path to getting the author to admit they screwed up.

    John
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange