[ http://nagoya.apache.org/jira/browse/XALANJ-1851?page=history ]

Henry Zongaro updated XALANJ-1851:
----------------------------------

    Priority: Major  (was: Blocker)

> XPath does not accept default namespaces with prefix resolver
> -------------------------------------------------------------
>
>          Key: XALANJ-1851
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1851
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: CurrentCVS
>  Environment: Operating System: All
> Platform: All
>     Reporter: Ralf
>     Assignee: Henry Zongaro

>
> The lexer class does not accept xpathes when a prefix resolver is defined 
> which
> is able to handle default namespaces.
> The error occurs in
> ***********
>     if ((null != uName) && (uName.length() > 0))
>     {
>       addToTokenQueue(uName);
>       addToTokenQueue(":");
> ===>  String s = pat.substring(posOfNSSep + 1, posOfScan);
>       if (s.length() > 0)
>         addToTokenQueue(s);
>     }
> ***********
> when a default namespace is used at the last position of the path. In this 
> case
> posOfNSSep is -1 and the path is used from the beginning as a token which is
> incorrect. Example for XPath: "/xy:root/test". The lexer crashes at "test".
> P.S. I hope I got the right version in Bugzilla.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to