I am seeing something strange when trying to validate XML instance with Xerces-J 2.5.0.
I have the following structure defined: vocab/ext_vocab.xsd lom.xsd example.xml Inside of example.xml I have the following declaration: <lom xmlns = "http://ltsc.ieee.org/xsd/LOM" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://ltsc.ieee.org/xsd/LOM lom.xsd http://ltsc.ieee.org/xsd/LOM/custom ext_vocab.xsd"> This version validates when I use the dom.Writer sample provided by Xerces-J. However, I don't think it is correct. I would think that the declaration in my example.xml should be: <lom xmlns = "http://ltsc.ieee.org/xsd/LOM" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://ltsc.ieee.org/xsd/LOM lom.xsd http://ltsc.ieee.org/xsd/LOM/custom vocab/ext_vocab.xsd"> Since the ext_vocab.xsd is located in a folder called vocab. The relative location from the root to the xsd is vocab/ext_vocab.xsd However is I change the schemaLocation to the way it is above I get validation errors: C:\workarea\XML Parsers\xerces250\xerces-2_5_0>java dom.Writer -v -n -s test\lomwd2\UniqueStrict_VocabCustom\example1.xml [Error] custom.xsd:34:65: src-resolve: Cannot resolve the name 'lx:sourceValues' to a(n) 'type definition' component. and a few others. This indicates to me that the parser cannot locate the ext_vocab.xsd. Is this a known bug or am I missing something. Thanks for all the help Schawn --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
