This is really useful and surprisingly easy if you need to display multiple different pieces of information on part of the document that depend on a value or values in the XML you can use a load of "if" or "if:else" statements but its much easier neater and more brain friendly to use a case statement like the following
where Company_ID199 is the tag in The tag in the XML that you want to make the decision based on
<?choose:?>
<?when:Company_ID199=‘00040‘?>Test
<?end when?>
<?when:Company_ID199=‘00041‘?>Test 2<?end when?>
<?otherwise:?> Test3<?end
otherwise?>
<?end choose?>
No comments:
Post a Comment