You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Brian Uri <bu...@fgm.com> on 2007/06/13 18:34:47 UTC
[jaxmexs-0.5.2] No check for invalid xs:include
Hello,
I have two XSD files as follows:
Schema1.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="schema:A">
<xs:include schemaLocation="Schema2.xsd" />
<!-- data here -->
</xs:schema>
Schema2.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="schema:B">
<!-- data here -->
</xs:schema>
I use XSParser with setValidating=true to build XSSchema objects for these
schemas. In JAXME 0.5.2, the schemas are constructed without error. However,
this is an invalid schema.
I believe that xs:include can only be used on another schema file when the
target namespace is the same in both files. So, JAXME should probably throw an
exception when a case like this is encountered.
Regards,
BU
--
¤
¤ Brian Uri, Software Engineer, FGM Inc.
¤ buri@fgm.com
¤
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: [jaxmexs-0.5.2] No check for invalid xs:include
Posted by Jochen Wiedmann <jo...@gmail.com>.
On 6/13/07, Brian Uri <bu...@fgm.com> wrote:
> I believe that xs:include can only be used on another schema file when the
> target namespace is the same in both files. So, JAXME should probably throw an
> exception when a case like this is encountered.
Please file a bug report.
Thanks,
Jochen
--
"Besides, manipulating elections is under penalty of law, resulting in
a preventative effect against manipulating elections.
The german government justifying the use of electronic voting machines
and obviously believing that we don't need a police, because all
illegal actions are forbidden.
http://dip.bundestag.de/btd/16/051/1605194.pdf
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org