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 "Toshiro Takase (JIRA)" <ji...@apache.org> on 2006/09/12 11:10:22 UTC

[jira] Created: (WSCOMMONS-94) Namespace declaration cannot be removed from OMElement

Namespace declaration cannot be removed from OMElement
------------------------------------------------------

                 Key: WSCOMMONS-94
                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-94
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
         Environment: Windows
            Reporter: Toshiro Takase
            Priority: Critical


Once an useless namespace declaration is declared to an OMElement, the namespace declaration cannot be removed forever.
In DOM, we can remove namespace declarations by using Element.removeAttribute() .
But, in AXIOM, we cannot remove namespace declarations by OMElement.removeAttribute() .
Maybe, we need OMElement.removeDeclaredNamespace() ?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-94) Namespace declaration cannot be removed from OMElement

Posted by "Toshiro Takase (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-94?page=comments#action_12436470 ] 
            
Toshiro Takase commented on WSCOMMONS-94:
-----------------------------------------

Thank you for your comment. And sorry for my late response.

I agree with you. prefix is mandatory.
The signature you suggest is good for me.
And even the following signature is OK for me also.

/** 
 * @param prefix the prefix associated with the namespace. This can not be null 
 */ 
public void removeDeclaredNamespace(prefix) 

Thanks in advance.

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-94
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-94
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Priority: Critical
>
> Once an useless namespace declaration is declared to an OMElement, the namespace declaration cannot be removed forever.
> In DOM, we can remove namespace declarations by using Element.removeAttribute() .
> But, in AXIOM, we cannot remove namespace declarations by OMElement.removeAttribute() .
> Maybe, we need OMElement.removeDeclaredNamespace() ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-94) Namespace declaration cannot be removed from OMElement

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated WSCOMMONS-94:
-------------------------------------

    Fix Version/s: Axiom 1.3

Setting fix version to 1.3 since the requested enhancement implies a change in Axiom's abstract APIs.

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-94
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-94
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Priority: Critical
>             Fix For: Axiom 1.3
>
>
> Once an useless namespace declaration is declared to an OMElement, the namespace declaration cannot be removed forever.
> In DOM, we can remove namespace declarations by using Element.removeAttribute() .
> But, in AXIOM, we cannot remove namespace declarations by OMElement.removeAttribute() .
> Maybe, we need OMElement.removeDeclaredNamespace() ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WSCOMMONS-94) Namespace declaration cannot be removed from OMElement

Posted by "Lahiru Gunathilake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863698#action_12863698 ] 

Lahiru Gunathilake commented on WSCOMMONS-94:
---------------------------------------------

Are we going to do this for the coming axiom release ?

Lahiru

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-94
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-94
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Priority: Critical
>             Fix For: Axiom 1.3
>
>
> Once an useless namespace declaration is declared to an OMElement, the namespace declaration cannot be removed forever.
> In DOM, we can remove namespace declarations by using Element.removeAttribute() .
> But, in AXIOM, we cannot remove namespace declarations by OMElement.removeAttribute() .
> Maybe, we need OMElement.removeDeclaredNamespace() ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WSCOMMONS-94) Namespace declaration cannot be removed from OMElement

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-94?page=comments#action_12434112 ] 
            
Eran Chinthaka commented on WSCOMMONS-94:
-----------------------------------------

One clarification. 

What should be the signature and the behaviour of this method would be. If its like
public void removeDeclaredNamespace(uri,prefix), then which parameter should not be null (hope we can not allow one to pass null for both). 
I would say prefix is a mandatory as there can be same namespace uris attached to the two or more prefixes, but the other way round has no meaning. 
So my suggestion is this :

/**
 * @param uri  the uri of the namespace to be removed. This can be null.
 * @param prefix the prefix associated with the namespace. This can not be null
 */
public void removeDeclaredNamespace(uri,prefix)

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-94
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-94
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Priority: Critical
>
> Once an useless namespace declaration is declared to an OMElement, the namespace declaration cannot be removed forever.
> In DOM, we can remove namespace declarations by using Element.removeAttribute() .
> But, in AXIOM, we cannot remove namespace declarations by OMElement.removeAttribute() .
> Maybe, we need OMElement.removeDeclaredNamespace() ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org