[jaxmexs-0.5.2] No check for invalid xs:include

2007-06-13 Thread Brian Uri

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.
¤ [EMAIL PROTECTED]
¤


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



Re: [jaxmexs-0.5.2] No check for invalid xs:include

2007-06-13 Thread Jochen Wiedmann

On 6/13/07, Brian Uri [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]