A little XSL example
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" encoding="iso-8859-1" />
<xsl:template match="/">
<html>
<head></head>
<body>
<xsl:apply-templates select="/books/book"/>
</body>
</html>
</xsl:template>
<xsl:template match="book">
Title: <xsl:value-of select="title"/><br/>
Author: <xsl:value-of select=" author"/><br/>
<hr/>
</xsl:template>
</xsl:stylesheet>
XSLT in PHP5
© copyright 2004 Bitflux GmbH