Hello,

you can solve the problem with using Namespaces. Here an changed example:
<?xml version="1.0">
<!DOCTYPE root [
   <!ENTITY test "this is a test">
]>
<root xmlns:xsi="http://www.w3.org/XMLSchema-instance";
      xmlns="http://www.test.com";
      xsi:schemaLocation="http://www.test.com
                          test.xsd">
  <a>Example &test;</a>
</root>

And this is the Schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
           targetNamespace="http://www.test.com";
           xmlns="http://www.test.com";
           elementFormDefault="qualified">

  <xs:element name="root">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="a" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="a" type="xs:string" />

</xs:schema>

Thanks all for helping.

maik
> 
> > Is it a bug? I am using Xerces 1.4.1 and JDK 1.3.
> > 
> > Here is the small xml-file:
> > <?xml version="1.0"?>
> > <!DOCTYPE root [
> >   <!ENTITY test "this is a test">
> > ]>
> > 
> > <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >                  xsi:noNamespaceSchemaLocation='test.xsd'>
> >   <a>Beispiel: &test;</a>
> > </root>
> 
> Currently Xerces does not work with both DTDs and Schemas. You have to
> use one or the other.
> One of the reasons it was broken, is because, no specification currently
> defines what is the XML processing model.
> I don't think we going to fix it in Xerces 1 but we definitely going to
> address it in Xerces 2.
> 
> Elena
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
============================================
"M�gen die Falten im Gesicht eines Menschen
 Spuren sein des Lachens !!"

Mail    : [EMAIL PROTECTED]
Homepage: http://www.webis-world.de (Schau doch mal vorbei !)
ICQ     : #57313947 


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

Reply via email to