</head>
<body>
<ul>
+ <xsl:apply-templates select="object[@name='index.theory']"/>
<!-- sorting: folders interleaved with theories, then objects-->
<xsl:apply-templates
- select="section|object[substring-after(@name,'.')='theory']">
+ select="section|object[substring-after(@name,'.')='theory' and
+ not(@name='index.theory')]">
<xsl:sort select="concat(@name,string(.))" />
</xsl:apply-templates>
<xsl:apply-templates