> -----Original Message-----
> From: Marcus Crafter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 4:51 PM
>
> > Neeme Praks has used it.  He is going to be the maintainer for this.
>
> Great. Neeme, I've look at the code to the XMLResourceBundle/Factory
> class and it seems to be mostly clear. What is not currently not clear
> to me is the markup of the input xml documents. What format should
> they be in ?

Plain XML :-)
Example:
<resources>
        <foo>bar</foo>
</resources>

then, in code, you can get "bar" like this:
bundle.getString("/resources/foo");

> I like the idea of using a Factory to get a bundle object, do you
> have plans to make XMLResourceBundle extend java.util.ResourceBundle
> so it can be a drop in replacement for current applications that use
> the java standard ResourceBundle classes ?

Well, I don't have a need for that yet, so you are welcome to send in
patches for it :-)
Also, if it will be a drop-in replacement then it would probably be
beneficial to allow the use of traditional "dot-separated" syntax instead of
XPath syntax when getting resources.

> I also noticed that the XMLResourceBundle class depends on Xerces and
> Xalan classes - is there any way of being able to make it function
> independantly of parser and xslt processor ?

If there is a standard API for XPath queries (I'm not aware of any), then it
would be easy. Otherwise, we would need to write our own (or extract from
Xalan) XPath query "evaluator".

Neeme


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

Reply via email to