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 "Ihor Istomin (JIRA)" <ji...@apache.org> on 2007/08/01 21:18:52 UTC

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

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


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

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536732 ] 

Ajith Harshana Ranabahu commented on WSCOMMONS-228:
---------------------------------------------------

Fixed in the trunk - Seems to be a long overdue correction :)

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


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

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ 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