You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Khan Intakhab <In...@erls.siemens.de> on 2000/06/29 10:45:12 UTC

Include and datatypes

Hi

I am trying to derived the type of the element with the help of include,
what i am trying is as follows:

First.xsd
 < Include schemaLocation="Second.xsd"/>

 <element name="Hello" type="xsi:Fine"/>


Second.xsd

<element name="Fine" type="string"/>


This what in summary i am trying to do, is it possible? I tried but it gives
me error like:
Schema error: null validator for datatype : Fine.

Seconldy is it possible to derived the datatype of element to attribute and
vice versa?

Any idea would be helpful.

-intakhab

Re: Include and datatypes

Posted by Eric Ye <er...@locus.apache.org>.
Do you have a targeNamespapce defined and a prefix: "xsi" bound to it?
if not, that could be the problem
----- Original Message -----
From: "Khan Intakhab" <In...@erls.siemens.de>
To: <xe...@xml.apache.org>
Sent: Thursday, June 29, 2000 1:45 AM
Subject: Include and datatypes


> Hi
>
> I am trying to derived the type of the element with the help of include,
> what i am trying is as follows:
>
> First.xsd
>  < Include schemaLocation="Second.xsd"/>
>
>  <element name="Hello" type="xsi:Fine"/>
>
>
> Second.xsd
>
> <element name="Fine" type="string"/>
>
>
> This what in summary i am trying to do, is it possible? I tried but it
gives
> me error like:
> Schema error: null validator for datatype : Fine.
>
> Seconldy is it possible to derived the datatype of element to attribute
and
> vice versa?
>
> Any idea would be helpful.
>
> -intakhab
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>