
Extensible Stylesheet Language (XSL) • 281
<TD style=”color: yellow; margin-left: 20px”>
<xsl:value-of select=”name”/> </TD>
<TD style=”color: yellow; margin-left:
20px”> <xsl:value-of select=”price”/> </TD>
</TR>
</xsl:for-each>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
We need to also mention that it is possible to sort on the basis of multiple elements at the same
time.
For example, suppose that in our earlier example, if we wanted to sort the elements in the order of name,
phone number, and state, we would need to write three <xsl:sort > entries immediately, one after the other,
as shown below:
… Other statements in ...