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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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