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

Attachment: VariableBug.java
Description: Binary data

*** checking for variable foo
*** fetching variable foo
$foo = foo_val

*** checking for variable foo:bar
*** fetching variable bar
$foo:bar = null


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

Reply via email to