[ 
https://issues.apache.org/jira/browse/TUSCANY-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473238
 ] 

Yang ZHONG commented on TUSCANY-1099:
-------------------------------------

XSDConstants.lookupQualifier is a nice substitution for Node#lookupPrefix 
before which is available. Thanks to Frank.

However, the attached lookupPrefix serves its special purpose; it can't be 
simply replaced by Node#lookupPrefix even if moved to DOM level 3 (Java 5).

The attached lookupPrefix returns prefix even if which is rebound to different 
NameSpace already.

Node#lookupPrefix doesn't return rebound prefix, neither should 
XSDConstants.lookupQualifier.
It's interesting that current XSDConstants.lookupQualifier does return rebound 
prefix which is a bug tracked by:
    http://issues.apache.org/jira/browse/TUSCANY-1115

If interested, here's an example of rebinding prefix:
    <schema xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:p="boundNS">
        <complexType xmlns:p="differentNS"
which is also available at:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=174236

> fix for TUSCANY-1083 used lookupPrefix method of Node not available to Java 
> 1.4.2 users
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1099
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1099
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-Mx
>         Environment: Java 1.4.2
>            Reporter: Paul Golick
>             Fix For: Java-SDO-Mx
>
>         Attachments: SDOXSDEcoreBuilder.1099
>
>
> mvn build ends with message:
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> C:\Tuscany\java505002\sdo\impl\src\main\java\org\apache\tuscany\sdo\helper\SDOXS
> DEcoreBuilder.java:[71,50] cannot resolve symbol
> symbol  : method lookupPrefix (java.lang.String)
> location: interface org.w3c.dom.Element

-- 
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]

Reply via email to