January 2002
Intermediate to advanced
480 pages
11h 5m
English
Returning to Listing 2.2, you’ll notice that following the <xsl:template match="/"> tag, there are several HTML tags. To recap, the template rule from Listing 2.2 is repeated here, in Listing 2.3.
<!-- Root template rule -->
<xsl:template match=”/”>
<HTML>
<HEAD>
<TITLE>First XSLT Example</TITLE>
</HEAD>
<BODY>
<P><B>Company: </B>
<xsl:value-of select=”invoice/clientName” />
</P>
<P><B>Contact: </B>
<xsl:value-of select=”invoice/contact” />
</P>
<P><B>Services Rendered: </B>
<xsl:value-of select=”invoice/descriptionOfServices” />
</P>
<P><B>Total Due: </B>
$<xsl:value-of select=”invoice/costOfServices” />
</P>
</BODY>
</HTML>
</xsl:template>
|
Anything contained in a template ...