Ed,
Both of the bugs you reported are now fixed, they were both in
VariablePointer. The name issue was quite straightforward. I had
name.getName() instead of name.toString() in a couple of places. The
indexing issue had to do with caching of value pointer by VariablePointer.
It needed to be cleared when the index changed during iteration.
Thank you for reporting these problems.
- Dmitri
----- Original Message -----
From: "Ed Peters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 12:40 PM
Subject: [JXPath] trouble with property fetch in custom Variables object
> Howdy,
>
> I'm trying to implement a custom Variables object, and I'm having trouble
> dealing with variables names that include a prefix. The issue is that
> JXPath tests for the existence of the variable using the full QName, but
> fetches the value of the variable using only the local name. So when I
> declare "foo:bar", two calls get made:
>
> // test for existence of var. this will work fine
> // since the variable is declared with the full name.
> myCustomVars.isDeclaredVariable("foo:bar")
>
> // fetch value of variable. this will fail because
> // it only uses the local name.
> myCustomVars.getVariable("bar")
>
> I've attached the code I used to perform these tests, and a txt file
showing
> the results. I tried it with both release 1.0 and the 1/17 nightly build.
> If you don't have time to look into it, I'd be happy to do so if you could
> give me a hint or two about where to start looking in the code.
>
> Thanks in advance,
> Ed
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>