XML - Managing Data Exchange/C.4

=XML Style Sheet=


 * 

 Table 4-3: XML style sheet for a one-to-one relationship – country_dest.xsl

The XML style sheet in Table 4-3 introduces the if statement as well as the ability to sort elements. The if statement executes code based on the evaluation of the condition given in the "test" attribute,e.g.


 * Big Town

 
 * Small Town

 Possible expressions for the condition are

Output can be sorted based on the value of the select attribute of the  element.