Is it possible to join schemas in version 4.1. If so, it would be nice to see an example of how this is done. Or can you point me to a reference on joins in Tamino.
Thank you.
Hello there.
This page in the documentation may answer your question:
C:\Program Files\Software AG\Tamino\Tamino 4.1.4.1\Documentation\advconc\DocumentComposition.htm
I hope that helps,
Trevor.
Hi!
It seems to be a little difficult.
See my example:
PATIENT
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “XML Schema”>
xs:annotation
xs:appinfo
<tsd:schemaInfo name = “health”>
<tsd:collection name = “health”></tsd:collection>
<tsd:doctype name = “patient”>
tsd:logical
tsd:contentclosed</tsd:content>
</tsd:logical>
</tsd:doctype>
tsd:adminInfo
tsd:server4.1.4.1</tsd:server>
tsd:modified2004-02-19T18:52:09.534+01:00</tsd:modified>
tsd:created2004-02-19T18:43:40.683+01:00</tsd:created>
tsd:versionTSD4</tsd:version>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = “patient”>
xs:complexType
xs:sequence
<xs:element ref = “name” minOccurs = “0”></xs:element>
<xs:element ref = “address” minOccurs = “0”></xs:element>
</xs:sequence>
<xs:attribute name = “ID” type = “xs:string”></xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = “name”>
xs:complexType
xs:sequence
<xs:element ref = “surname” minOccurs = “0”></xs:element>
<xs:element ref = “firstname” minOccurs = “0”></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name = “surname” type = “xs:string”></xs:element>
<xs:element name = “firstname” type = “xs:string”></xs:element>
<xs:element name = “address”>
xs:complexType
xs:sequence
<xs:element ref = “street” minOccurs = “0”></xs:element>
<xs:element ref = “housenumber” minOccurs = “0”></xs:element>
<xs:element ref = “city” minOccurs = “0”></xs:element>
<xs:element ref = “postcode” minOccurs = “0”></xs:element>
<xs:element ref = “country” minOccurs = “0”></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name = “street” type = “xs:string”></xs:element>
<xs:element name = “housenumber” type = “xs:string”></xs:element>
<xs:element name = “city” type = “xs:string”></xs:element>
<xs:element name = “postcode” type = “xs:string”></xs:element>
<xs:element name = “country” type = “xs:string”></xs:element>
</xs:schema>
and
REPORT
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “XML Schema”>
xs:annotation
xs:appinfo
<tsd:schemaInfo name = “report”>
<tsd:collection name = “health”></tsd:collection>
<tsd:doctype name = “report”>
tsd:logical
tsd:contentclosed</tsd:content>
</tsd:logical>
</tsd:doctype>
tsd:adminInfo
tsd:server4.1.4.1</tsd:server>
tsd:modified2004-02-19T19:04:02.670+01:00</tsd:modified>
tsd:created2004-02-19T19:02:14.744+01:00</tsd:created>
tsd:versionTSD4</tsd:version>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = “report”>
xs:complexType
xs:sequence
<xs:element name = “patientID” type = “xs:int”>
xs:annotation
xs:appinfo
tsd:elementInfo
tsd:physical
tsd:native
tsd:objectRef
tsd:collectionRefhealth</tsd:collectionRef>
<tsd:accessPredicate operator = “=”>
tsd:nodeRefpatient/@ID</tsd:nodeRef>
</tsd:accessPredicate>
</tsd:objectRef>
</tsd:native>
</tsd:physical>
</tsd:elementInfo>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Is there any failure? Anything seems to be correct.
It doesn’t work in my case.
Ciao,
Joachim