Hi!

Is it possible to use the xmlParseSchema function with a schema that does 
reference other schemas using the <import> tag?

Sample:

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

      <s:import namespace="http://somenamespace.com"; />

      <s:element name="MyElement">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s1:Temp" />
          </s:sequence>
        </s:complexType>
      </s:element>
</s:schema>


I always get an error that an element in a namespace, which is defined in one 
of the referenced schemas, cannot be resolved. "Element s1:Temp {...} does not 
resolve to a(n) element declaration".

I have read about xmlSetExternalEntityLoader function which seems like a 
possible way to implement my own schema cache that can provide multiple 
referenced schemas to the parser?

I tried, but I failed to do it.

Regards,
Martin

-- 
[Poetry]
QW4gamVkZW0gZGVzIHNlaW5l

Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to