<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
	<xsl:template match="/">
		<ol>
				<xsl:for-each-group select="//cffunction" group-by="@access">
			<li class="{@access}">
					<xsl:apply-templates select="." />
			</li>
				</xsl:for-each-group>	
		</ol>
	</xsl:template>
	
	<xsl:template match="//cffunction">
		<xsl:value-of select="@name" />
		returns : <xsl:value-of select="@returntype" />
		<div style="padding-left:10px;">
			<xsl:for-each select="./*">
				<xsl:value-of select=". | @*" /><br /> 
			</xsl:for-each>
		</div>
	</xsl:template>
</xsl:stylesheet>