The "XmlSchema XmlSchemaCollection.read(Element element, String uri)" method
doesn't use passed uri for resolving of schema(s).
-------------------------------------------------------------------------------------------------------------------------------
Key: WSCOMMONS-228
URL: https://issues.apache.org/jira/browse/WSCOMMONS-228
Project: WS-Commons
Issue Type: Bug
Components: XmlSchema
Environment: ANY
Reporter: Ihor Istomin
The "XmlSchema XmlSchemaCollection.read(Element element, String uri)" method
doesn't use passed uri for resolving of schema(s). As I can understand the
passed "uri" parameter specifies source URI of a schema defined by "element"
parameter. But the "uri" is not passed to SchemaBuilder and as consequence
imported/included schema(s) can't be resolved is relative URI is specified in
"import"/"include".
Passing of "uri" to SchemaBuilder resolves the problem:
{noformat}
public XmlSchema read(Element elem, String uri) {
SchemaBuilder builder = new SchemaBuilder(this, null);
XmlSchema xmlSchema = builder.handleXmlSchemaElement(elem, uri);
xmlSchema.setInputEncoding(DOMUtil.getInputEncoding(elem.getOwnerDocument()));
return xmlSchema;
}
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]