Hi Uli, Thank you for your explanation. Unfortunately it doesn’t work with include. Hier is my test code: ----includingSchema-------
<?xml version = "1.0" encoding = "UTF-8"?> <xs:schema targetNamespace = "http://www.ah.de/include" attributeFormDefault = "qualified" elementFormDefault = "qualified" xmlns = "http://www.ah.de/include" xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xs = "http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appinfo> <tsd:schemaInfo name = "includingSchema"> <tsd:collection name = "includeTest"></tsd:collection> <tsd:doctype name = "including"> <tsd:logical> <tsd:content>closed</tsd:content> </tsd:logical> </tsd:doctype> </tsd:schemaInfo> </xs:appinfo> </xs:annotation> <xs:include schemaLocation = "../includeTest/includedSchema.tsd"></xs:include> <xs:element name = "including"> <xs:complexType> <xs:sequence> <xs:element name = "organisation" type = "xs:string"></xs:element> <xs:element name = "person" type = "personType"></xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
----includedSchema-----
<xs:schema xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appinfo> <tsd:schemaInfo name="includedSchema"> <tsd:collection name="includeTest"/> <tsd:adminInfo> <tsd:server>4.2.1.1</tsd:server> <tsd:modified>2006-07-20T13:10:04.879+01:00</tsd:modified> <tsd:created>2006-07-20T13:10:04.879+01:00</tsd:created> <tsd:version>TSD4.2</tsd:version> </tsd:adminInfo> </tsd:schemaInfo> </xs:appinfo> </xs:annotation> <xs:complexType name="personType"> <xs:sequence> <xs:element name="name" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema>
I have tried with the 3 variants of the path exprssion. I became always the same message: invalid import element. schema reference could not be resolved please give me a sample usage of xs:include in tamino schema, which works. best regards, chacha
#webMethods#Tamino#API-Management