You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Peter Tornberg <tb...@x-obi.com> on 2001/04/26 09:43:09 UTC
##other problems
Hi,
I have an application where I want to use the <xsd:any namespace =
"##other" ... mechanism. Unfortunaltely I'm not able to get this to work.
What am I doing wrong?
---------------other.xml-----------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<elem xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="other.xsd">
<other:test xmlns:other = "http://kai/test.xsd">
<other:kaka>Bulle</other:kaka>
</other:test>
</elem>
--------------other.xsd------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
<xsd:element name="elem">
<xsd:complexType>
<xsd:sequence>
<xsd:any namespace = "##other" processConetents = "strict" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I get the error messages:
[Error] Element type "other:test" must be declared.
[Error] Element type "other:kaka" must be declared.
If I snoop the network I see that no request is made to http://kai to get
the test.xsd to verify the other:* stuff. How do I force the parser to get
the test.xsd to verify the data?
Thanks!
/Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org