You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2007/10/23 05:16:51 UTC

[jira] Resolved: (WSCOMMONS-228) The "XmlSchema XmlSchemaCollection.read(Element element, String uri)" method doesn't use passed uri for resolving of schema(s).

     [ https://issues.apache.org/jira/browse/WSCOMMONS-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajith Harshana Ranabahu resolved WSCOMMONS-228.
-----------------------------------------------

    Resolution: Fixed
      Assignee: Ajith Harshana Ranabahu

This seems to be working and I am marking it as resolved. 

> 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
>            Assignee: Ajith Harshana Ranabahu
>
> 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org