I currently have an Java servlet application that I'm moving to Cocoon. This
application uses the servlet API's getLocale() method to figure out what
language to display the page in. I use ResourceBundles to store my language
information and everything works using JSP/Servlet combination. My question
is how would I do this with XML/XSL. I have tried a lame hack where I put a
<MESSAGE></MESSAGE> element in my XML but this defeats the point of
separating data from style. The messages don't have anything to do with
the data, mostly just HTML labels for fields, etc. Any ideas on how to go
about this. Does XSL allow some kind of programmatic transformation along
the lines of ResourceBundles? if not does anyone have any ideas on a good
way to go about handling this?
Thanks,
Mike