topical media & game development
basic-xml-08-People.xsl / xsl
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:template match="/">
<html>
<head>
<title>Information about <xsl:value-of select="count(/People/Person)" /> people.</title>
</head>
<body>
<h3>Information about <xsl:value-of select="count(/People/Person)" /> people.</h3>
<br />
<xsl:apply-templates select="/People/Person" />
</body>
</html>
</xsl:template>
<xsl:template match="Person">
<h3><xsl:value-of select="Name" /></h3>
<p><xsl:value-of select="Description" /></p>
<br />
</xsl:template>
</xsl:stylesheet>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.