Deriving from global UDT Element vs referencing a global ele

Hello everyone.

What is the difference between referencing a global element and deriving from a global user defined type element ?

Since I don’t use abstract for the udt, is there any diff at all ?

Thank you,

Peter

reference:

schema:

<xs:element name = “list”>
xs:complexType
xs:sequence
<xs:element ref = "udt>


instance:

content



derivation:

schema:

<xs:element name = “extendedUdt”>
xs:complexType
<xs:extension base = “udt”>
</xs:extension>

(extension with no change to the base type)

instance:




The difference is in the instance, if you do not change anything by derivation.
Note: derivation of user defined types is not yet supported by Tamino.



Hello Harald.

1)
So if I understand correctly, an element reference cannot exist on its own; it must be contained within another element ?

2)
Even Tamino 4.1.1.1 doesn’t support derived udt’s at all? So the schema editor has this functionality just for XSD schemas, but not for TSD4 ?

Thank you,

Peter

1.) yes
2.) yes, with the schema editor you can edit XSD schemas, but you cannot define them to Tamino. Define is enabled for TSD4/TSD3 view only. The schema editor helps you identifying constructs, not supported by Tamino. The next version which is under construction will offer conversion functions that convert your schema from XSD to TSD4. Currently you have to use the schema conversion stylesheets. They will convert type inheritance within one namespace well.

Thank you for the answers, it does shed some light onto the matter!

Peter