3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:helm="http://www.cs.unibo.it/helm"
6 xmlns="http://www.w3.org/1999/xhtml"
9 <xsl:output method="html" encoding="iso-8859-1"/>
11 <xsl:param name="CICURI" select="''" />
12 <xsl:param name="interfaceURL" select="''" />
14 <xsl:template match="ls">
20 url(<xsl:value-of select="$interfaceURL"/>/icons/theory.png)
24 url(<xsl:value-of select="$interfaceURL"/>/icons/folder.png)
28 url(<xsl:value-of select="$interfaceURL"/>/icons/object.png)
30 a.theory { text-decoration: none; }
31 a.folder { text-decoration: none; }
32 a.object { text-decoration: none; }
37 <!-- sorting: folders interleaved with theories, then objects-->
39 select="section|object[substring-after(@name,'.')='theory']">
40 <xsl:sort select="concat(@name,string(.))" />
41 </xsl:apply-templates>
43 select="object[not(substring-after(@name,'.')='theory')]" />
44 <!-- sorting: folders, theories, objects -->
46 <xsl:apply-templates select="section" />
47 <xsl:apply-templates select="object" />
54 <xsl:template match="section">
56 <a class="folder" href="{concat($CICURI, text(), '/')}"
57 helm:helm_link="href">
58 <xsl:value-of select="text()" />
60 <xsl:text>/</xsl:text>
64 <xsl:template match="object">
66 <xsl:when test="substring-after(@name, '.')='theory'">
68 <a class="theory" href="{concat($CICURI, @name)}"
69 helm:helm_link="href">
70 <xsl:value-of select="@name" />
77 href="{concat('cic:', substring-after($CICURI, ':'), @name)}"
78 helm:helm_link="href">
79 <xsl:value-of select="@name" />