<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>Welcome to my page</title>
</head>
<body>
<xsl:for-each select="page/header">
<xsl:value-of select="title"/>
<xsl:value-of select="subtitle"/>
</xsl:for-each>
<xsl:for-each select="page/navigation">
<a><xsl:value-of "*"/></a>
</xsl:for-each>
<xsl:for-each select="page/body">
<xsl:value-of select="*"/>
</xsl:for-each>
<xsl:for-each select="page/footer">
<xsl:value-of select="*"/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|