257
XmL
<TABLE BORDER="1">
<THEAD>
<TR BGCOLOR="PINK">
<TH>Order ID</TH>
<TH>Item ID</TH>
<TH>Item Name</TH>
<TH>Quantity</TH>
</TR>
</THEAD>
<TBODY>
<xsl:for-each select="OrderList/Order">
<TR>
<TD><xsl:value-of select="@OrderID"/></TD>
<xsl:for-each select="Item">
<TR>
<TD> </TD>
<TD><xsl:value-of select="ItemID"/></TD>
<xsl:for-each select="ItemName">
<TD><a href="{@xlink:href}"><xsl:value-of select="."/></a>
</TD>
</xsl:for-each>
<TD ALIGN="RIGHT"><xsl:value-of select="Quantity"/></TD>
</TR>
</xsl:for-each>
</TR>
</xsl:for-each>
</TBODY>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
To associate the order- inventory.xsl to the XML document, a line
<?xml- stylesheet type="text/ xsl" href="order- inventory.xsl"?>
must be added ...