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.  tamino schema with namespace

    Posted Wed July 19, 2006 07:55 PM

    Hi, i have defined a very simple schema with namespace and have problem during insert a instance of this schema. i seems like this:

    <xs:schema targetNamespace="NS" xmlns="NS" xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xs="http://www.w3.org/2001/XMLSchema"> ..... <xs:element name = "person"> <xs:complexType> <xs:sequence> <xs:element name = "name" type = "xs:string"></xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

    the instance is like this:

    <person xmlns="NS"> <name>cat</name> </person>

    the error message is: b:element content missing, minOccurs constraint violation in element declaration;[element’name’ in element ‘person’] [/b] I have no idea, what can be wrong [/b]


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: tamino schema with namespace

    Posted Wed July 19, 2006 08:29 PM

    add to your stylesheet element: elementFormDefault=“qualified” Otherwise your schema declares name in the empty namespace, whereas this element appears in the namespace “NS”


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: tamino schema with namespace

    Posted Wed July 19, 2006 08:40 PM

    it works now!:wink: Thanks a lot!!


    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: tamino schema with namespace

    Posted Fri July 21, 2006 07:47 AM

    Hi here is the answer: (1) element declarations which are direct children of the xs:schema node are named “global” - they do always belong to the targetNamespace. (2) non-global, i.e. local element declarations do not belong to the targetNamespace by default. You need to specify either the form=“qualified” attribute on a single element declaration or the elementFormDefault=“qualified” attribute on the xs:schema node in order to make ther local element declaration belonging to the targetNamespace. Regards Uli


    #API-Management
    #Tamino
    #webMethods