[ http://issues.apache.org/jira/browse/XALANJ-889?page=all ]

Brian Minchau updated XALANJ-889:
---------------------------------

    Version: Latest Development Code
                 (was: 2.3)

> Redefinition of prefix to same URN breaks subPartMatchNS in Xpath
> -----------------------------------------------------------------
>
>          Key: XALANJ-889
>          URL: http://issues.apache.org/jira/browse/XALANJ-889
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: Latest Development Code
>  Environment: Operating System: Solaris
> Platform: Sun
>     Reporter: Joel Crisp
>     Assignee: Xalan Developers Mailing List

>
> According to the XPath specification, any prefix which maps to the same URN 
> is 
> equivalent. If a prefix is remapped to the same URN then lack of string 
> interning somewhere causes subPartMatchNS in 
> org/apache/xapth/patterns/NodeTest.java to fail since it uses == comparason 
> not .equals() comparason on the strings. Similarly if two prefixes map to the 
> same URN the same problem occurs.
> subPartMatchNS - p: http://bris_atu_WebServices/BCRWSSSOAP, t: 
> http://bris_ati_WebServices/BCRWSSSOAP r=false
> with 
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP:Envelope xmlns="http://bris_ati_WebServices/BCRWSSSOAP"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"; 
> xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ file:soap-
> envelope.xsd" xsi:noPrefixSchemaLocation="file:BCRWSSSOAP.xsd"> 
>   <SOAP:Header>
>     <InterfaceName>IBCRWSS</InterfaceName>
>   </SOAP:Header>
>   <SOAP:Body>
>     <WssRequest>
>       <Parameters>
>         <SearchTasks xmlns="http://bris_atu_WebServices/BCRWSSSOAP";>
>           <UserId>jamessally</UserId>
>           <CorporateIdentifier>1221416</CorporateIdentifier>
>           <TaskStatus>Open</TaskStatus>
>         </SearchTasks>
>       </Parameters>
>     </WssRequest>
>   </SOAP:Body>
> </SOAP:Envelope>

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to