RE: Question about combination of xsi:type and import


thanks for the response.

But that does not solve our problem:

> -----Original Message-----
> From: Pierre G. Boutquin []
> Sent: Tuesday, May 29, 2001 4:32 AM
> To:
> Cc:; Pierre Boutquin
> Subject: RE: Question about combination of xsi:type and import
> The following 4 files seem to work with XML Spy...


> 4) Instance document: treeWithExtendedLeaf.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- edited with XML Spy v3.5 NT ( by Pierre G.
> Boutquin (Veredex Logistics) -->
> <tree:tree xmlns:tree="urn:tree" xmlns:extLeaf="urn:extLeaf"
> xmlns:xsi=""
> xsi:schemaLocation="urn:extLeaf extLeaf.xsd">
> 	<tree:leaf xsi:type="extLeaf:extendedLeafType">
> 		<tree:name>eins</tree:name>
> 		<extLeaf:info>Test</extLeaf:info>
> 	</tree:leaf>
> </tree:tree>

In the instance document you use the "urn:extLeaf" namespace.
That's what I want to avoid. I want to use the "base" namespace ("urn:tree")
because there is a possible unlimited number of "extension" namespaces.
I just want to reference to the other type via xsd:type.

I think what I want is an "open content model" like with "##any" but
to restrict the elements to subtypes of some known basetype.

Is this possible with XSD ?

Oliver Geisser
System Architect
Winterstr. 49
33649 Bielefeld
Fon: +49 (0)521 9318-2128
Fax: +49 (0)521 9318-2199

Received on Tuesday, 12 June 2001 03:44:10 UTC