
Securing XML • Chapter 8 341
Figure 8.2 is an XSL style sheet that produces an HTML document.
Figure 8.2 XSL Style Sheet
<?xml version="1.0">
<xsl:template xmlns:xsl="uri.xsl">
<HTML>
<HEAD>
<TITLE>Product list</TITLE>
</HEAD>
<BODY>
<TABLE cellpadding="3" cellspacing="0" border="1">
<xsl:repeat for="Products/Product>
<TR>
<TD>
<xsl:get-value for="ProductName"/>
</TD>
<TD>
<xsl:get-value for="ProductPrice">
</TD></TR>
</xsl:repeat>
</TABLE>
</BODY>
</HTML>
</xsl:template>
When the XML document in Figure 8.1 is transformed using the
XSL style sheet in Figure 8.2, the HTML shown in Figure 8.3 is the
result.
www.syngress.com
137_hackapps_08 6/19/01 3:40 PM Page 341