Sounds cool with me. Since this is an API change, can we do a release
shortly after this change is done, then I can change the dependent projects
(dom4j and XTags) to be inline with the new API.

James
----- Original Message -----
From: "Erwin Bolwidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 10:16 AM
Subject: [Jaxen] Variable and Function context: namespace handling change?


> Hi,
>
> At the moment, VariableContext and FunctionContext look up variables and
> functions using a prefix and local name. NamespaceContext looks up the uri
> for a prefix.
>
> I think it would make more sense to have the variable and function
> contexts look things up by their namespace uri. The lookup method could
> also pass the prefix, but normally an xml application should ignore the
> prefix and use the uri.
>
> Of course, variable/function contexts can currently use a namespace
> context to resolve the prefix, but this introduces extra work and an extra
> possibility for bugs in the case that they use a different namespace
> context than the rest of the xpath expression.
>
>
> So would it be okay to change these?
>
> VariableContext:
>
> from: public Object getVariableValue(String prefix, String localName)
> to:   public Object getVariableValue(String uri, String prefix, String
>                                      localName)
>
>
> FunctionContext:
>
> from: public Function getFunction(String prefix, String localName)
> to:   public Function getFunction(String uri, String prefix, String
>                                   localName)
>
>
> Greetings,
>   Erwin
>
>
>
> _______________________________________________
> Jaxen-interest mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jaxen-interest


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to