Can I use conditional branching in xml email templates -


i want have generalised email templates. have multiple email templates part of subject , body being changed. club them conditional branching like,

<email>    <sub>       if(condition)            sub1       else            sub2     </sub>     <body>         text         if(condition)              text...         else              text...          body continued...     </body> </email> 

can in way?

for task idea use template engine. there exist template engines plain text (like apache velocity) can use generating xml too. there specialized template engines xml, xslt (with various implementions every programming environment) or genshi (with special xml mode).

look @ wikipedia template engine page comparison table.


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

jtree - comparing two TreeNode (or DefaultMutableTreeNode) objects in Java Comparator -