IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Include another schema.

    Posted Mon September 20, 2004 12:10 PM

    Hello there.

    I’m using Tamino 4.2 under Linux RedHat 2.1

    From a windows box (using SAG Tamino Schema Editor) i’m trying to build (a fair simple) TSD with an include (xs:include).

    Here’s how my TSD looks like :


    **********************************************************

    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema elementFormDefault = “qualified” xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “XML Schema”>
    xs:annotation
    xs:appinfo
    <tsd:schemaInfo name = “Editeur”>
    <tsd:collection name = “Collectors”></tsd:collection>
    <tsd:doctype name = “Editeur”>
    tsd:logical
    tsd:contentclosed</tsd:content>
    </tsd:logical>
    </tsd:doctype>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    <xs:include schemaLocation = “common.xsd”></xs:include>
    <xs:element name = “Editeur”>
    xs:annotation
    xs:documentationEditeur d’une publication</xs:documentation>
    </xs:annotation>
    xs:complexType
    xs:sequence
    <xs:element name = “EditeurID” type = “xs:string”>
    xs:annotation
    xs:documentationIdentifiant de l’


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Include another schema.

    Posted Mon September 20, 2004 01:16 PM

    Hi Bertrand,

    To define your schema into tamino, you first need to define the schema that you are including. So in your case you first define common.xsd in tamino and then give the path of that schema in your include. That will solve your problem.

    Best Regards,
    Vipin Makode


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: Include another schema.

    Posted Mon September 20, 2004 02:48 PM

    Hello Vipin,

    Thanks a lot for your help !
    It works ok now !

    As I try not to bother people with documented subject I’ve been looking for “including schemas into TSD” into Tamino’s documentation, with no luck. Could you please tell me where the steps you told me are documented ?

    Thanks again !!!

    Bertrand Martel
    Software AG France


    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: Include another schema.

    Posted Mon September 20, 2004 03:30 PM

    Hi Bertrand,

    This is not directly documented for schema editor. If you see the details for “xs:include” element in the documnetion, it is mentioned.

    You can find this under:
    Tamino XML Schema Reference Guide > TSD4 Logical: Definitions > xs:include.

    In this second statement clearly says that “In Tamino an xs:include element must resolve to a schema already defined in the same database.”


    Vipin Makode


    #webMethods
    #API-Management
    #Tamino


  • 5.  RE: Include another schema.

    Posted Fri November 26, 2004 03:49 AM

    Suppose I have 100 schemata which include a schema S. If now I want to change schema S, I cannot undefine it and define it, since it is being referenced. Is there a simpler way to redefine schema S other than undefining the 101 schemata and redefining them?

    Thanks for the help!


    #API-Management
    #Tamino
    #webMethods


  • 6.  RE: Include another schema.

    Posted Fri November 26, 2004 11:44 AM

    Hi

    since Tamino 4.2 it is possible to update an included or imported
    schema document, SI. However, the schema update must be done in a way
    that documents being stored in one of the affected doctypes
    remain valid to the new schema.
    Affected doctypes are all those being declared in SI and any including
    or importing schema document + transitive closure of including
    or importing schema documents.

    If Tamino cannot grant this constranit by structural comparison
    of the old and new schema document, you have to use instance validation
    (i.e. _mode=validate) in the schema update operation.

    Cheers
    Uli


    #Tamino
    #API-Management
    #webMethods