Hi,

yes, I think you already described the benefits:
  - Easily add new elements.
  - Modular.
  - No "if else" cascade in startElement and endElement.
  - only one Transformer needed in a pipeline for different transformation.

In our "WorldAccount" project we already had implemented a "TextTag" which we
use for i18n translation. In difference to I18NTransformer the key is a XPath
expression to the XMLResourceBundle and can return a string or a Node. I have
added a example of a ResourceBundle File.
If you like, we can work together rewriting I18NTransformer as a set of Tags.

Regards Volker

(See attached file: Text.xml)





Hi!

This looks very similar to what is a transformer doing, except for the using
separate classes to handle every tag. And it's also looks like the SAXLet
idea, that has been proposed and maybe even implemented a while ago.

I've been thinking about reimplementing I18nTransformer using something like
this to be able to easily add new elements. Could you please elaborate more
on the advantages of your solution against the transformer approach, except
the flexible configuration?

Regards,
  Konstantin



Attachment: Text.xml
Description: Binary data

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

Reply via email to