<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<body>
				<ol>
					<xsl:apply-templates select="*"/>
				</ol>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="*">
		<li>
			<xsl:text>Element: </xsl:text>
			<b>
				<xsl:value-of select="local-name(.)"/>
			</b>
			<xsl:if test="@*">
				<ul>
					<xsl:apply-templates select="@*"/>
				</ul>
			</xsl:if>
			<xsl:if test="node()">
				<ol>
					<xsl:apply-templates select="node()"/>
				</ol>
			</xsl:if>
		</li>
	</xsl:template>
	<xsl:template match="text()">
		<xsl:choose>
			<xsl:when test="normalize-space(.) != '' and count(../text()) &gt; 1">
				<li>
					<code>
						<xsl:value-of select="."/>
					</code>
				</li>
			</xsl:when>
			<xsl:otherwise>
				<code>
					<xsl:value-of select="."/>
				</code>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="comment()">
		<li>
			<i>
				<xsl:value-of select="."/>
			</i>
		</li>
	</xsl:template>
	<xsl:template match="processing-instruction()">
		<li>
			<u>
				<xsl:value-of select="local-name(.)"/>
				<xsl:text> </xsl:text>
				<xsl:value-of select="."/>
			</u>
		</li>
	</xsl:template>
	<xsl:template match="@*">
		<li>
			<xsl:text>Attribute: </xsl:text>
			<b>
				<xsl:value-of select="local-name(.)"/>
			</b>
			<xsl:text>="</xsl:text>
			<xsl:value-of select="."/>
			<xsl:text>"</xsl:text>
		</li>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="b.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->