<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>

	<xsl:template match="/">
		<html>
			<body>
				<ul>
					<xsl:apply-templates select="lists/list/entry[@kind = 'dir' and string-length(translate(name, translate(name, '/', ''), '')) = 0]">
						<xsl:with-param name="depth" select="'0'"/>
					</xsl:apply-templates>
				</ul>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="entry">
		<xsl:param name="depth"/>
		<li>
			<b>
				<xsl:value-of select="name"/>
			</b>
			<xsl:variable name="parent" select="concat(name, '/')"/>
			<xsl:if test="../entry[starts-with(name, $parent)]">
				<ul>
					<xsl:apply-templates select="../entry[@kind != 'dir' and starts-with(name, $parent) and string-length(translate(name, translate(name, '/', ''), '')) = $depth + 1]" mode="file"/>
					<xsl:apply-templates select="../entry[@kind = 'dir' and starts-with(name, $parent) and string-length(translate(name, translate(name, '/', ''), '')) = $depth + 1]">
						<xsl:with-param name="depth" select="$depth + 1"/>
					</xsl:apply-templates>
				</ul>
			</xsl:if>
		</li>
	</xsl:template>

	<xsl:template match="entry" mode="file">
		<li>
			<xsl:value-of select="name"/>
			<xsl:text> (</xsl:text>
			<xsl:value-of select="size"/>
			<xsl:text> bytes)</xsl:text>
		</li>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="PEG" userelativepaths="yes" externalpreview="no" url="http://www.stylusstudio.com/SSDN/upload/PEGPublicSvn.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="true"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/><advancedProp name="iErrorHandling" value="fatal"/></scenario></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->