Hi all,
 Hi Gareth,

 thank you very much for your answer.
 But i was not able to solve my problem.

 I think the include element allows me to access components in other schemas and
 that Schema B i include in Schema A must has the same namespace as Schema A 
(see below).
 Why do i need a prefix?

 Is there any setFeature() option i have to set to enable Xercesc to handle 
this? 
 

Schema A:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    <xsd:include schemaLocation="xhtml.xsd"/>

 The Schema A uses one XHTML tag (<p>) (defined in Schema B) as a part of a 
ComplexType
 (please see below) definition.
  
 <xsd:element maxOccurs="unbounded" minOccurs="0" type="p" name="p"/>



Schema xhtml (Schema B):

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <!--Version: 01.14.04-->
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


Errormessages of Xercesc 2-3-0:

 "Type not Found in :p"
 "Untyped element :p"




 Can somebody help me?

 Thanks in advance, Mirko
 


-----Ursprüngliche Nachricht-----
Von: Gareth Reakes [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 4. November 2004 16:41
An: [EMAIL PROTECTED]
Betreff: Re: include Schema in a Schema


Hi,
       you are trying to reference p in the null namespace. You need to 
bind a prefix to the xhtml namespace and then
reference it via that prefix.

Gareth

Mirko Braun wrote:

> Hi all,
>  
> i would like to parse a XML file validating against a Schema A. And
> this Schema A includes
> another Schema B (defines XHTML tags) . The code below shows the 
> include mechanism of Schema B
> in Schema A.
>  
>  
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>     <xsd:include schemaLocation="xhtml.xsd"/>
>  
>  
> The Schema A uses one XHTML tag (<p>) as a part of a ComplexType
> (please see below) definition.
>  
>             <xsd:element maxOccurs="unbounded" minOccurs="0" type="p"
> name="p"/>
>  
>  
>  
> When i parse my XML file. The parser create following error messages:
>  
> "Type not Found in :p"
> "Untyped element :p"
>  
> Can anybody help me?
>  
> Thanks in advance,
>  
> Mirko
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED] 


-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to