> A switch or choose structure is much cleaner (IMHO) for this kind of > pattern in xml. > elseif works well in code, but tends to cause indentation blowout in > xml: > <if test=3D"test1"> > <then1 /> > <elseif test=3D"test2"> > <then2 /> > <elseif test=3D"test3"> > <then3 /> > </elseif> > </elseif> > </if>
Heh, yeah, I get your point. Just suggested it out of a desire for completeness. A switch as implemented in C-based languages only allows you to test one variable, whereas <elseif> would allow you to test other variables. But the times when this would be a big issue aren't that common. ********************************************************************** Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you must not copy, distribute or take any action in reliance to it. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Minorplanet Systems Plc shall be understood as neither given nor endorsed by it. ********************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users