<cfsavecontent variable="strXSLT">
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="html"
indent="yes"
/>
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="page/title" />
</title>
<xsl:apply-templates select="page/meta" />
</head>
<body>
<h1>
<xsl:value-of select="page/title" />
</h1>
<xsl:apply-templates select=" />
<xsl:apply-templates
select="page/primarycontent"
/>
</body>
</html>
</xsl:template>
<xsl:template match="meta">
<xsl:element name="meta">
<xsl:attribute name="keywords">
<xsl:value-of select="keywords" />
</xsl:attribute>
</xsl:element>
<xsl:element name="meta">
<xsl:attribute name="description">
<xsl:value-of select="description" />
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="primarynav">
<ul id="primarynav">
<xsl:for-each select="navitem">
<li>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:if test="@ison = 'true'">
<xsl:attribute name="class">
on
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@text" />
</xsl:element>
</li>
</xsl:for-each>
</ul>
</xsl:template>
<xsl:template match="primarycontent">
<div id="sitecontent">
<xsl:value-of
select="."
disable-output-escaping="yes"
/>
</div>
</xsl:template>
</xsl:transform>
</cfsavecontent>
#XmlTransform(
xmlPage,
Trim( strXSLT )
)#