Hi Xiaofeng, Did you provide a URI when you parsed the document using XSLoader? A common usage error is specifying an InputStream or Reader and not providing a system ID as the base URI. Without providing a base URI the schema loader will fall back to using the current working directory (the value of the system property user.dir) as the base URI for resolution.
Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Xiaofeng Zhang" <[EMAIL PROTECTED]> wrote on 05/06/2008 09:04:27 PM: > Hi, > We use XSLoader to load XML schema. If the xsd file include relative > schemaLocation a warning is thrown: > [Warning] :2:46: schema_reference.4: Failed to read schema document > '../base.xsd', because 1) could not find the document; 2) the > document could not be read; 3) the root element of the document is > not <xsd:schema>. > > Changing to absolute path <xsd:include schemaLocation="file:///C:/.../base.xsd > "/> the XSLoader will work. > Is this a bug? > > The attached file is a schema example. > > Regards, > Xiaofeng > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]