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 <xsl:apply-templates select="object[@name='index.theory']"/>
38 <!-- sorting: folders interleaved with theories, then objects-->
40 select="section|object[substring-after(@name,'.')='theory' and
41 not(@name='index.theory')]">
42 <xsl:sort select="translate(concat(@name,string(.)),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
43 </xsl:apply-templates>
45 select="object[not(substring-after(@name,'.')='theory')]" >
46 <xsl:sort select="translate(concat(@name,string(.)),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
47 </xsl:apply-templates>
53 <xsl:template match="section">
55 <a class="folder" href="{concat($CICURI, text(), '/')}"
56 helm:helm_link="href">
57 <xsl:value-of select="text()" />
59 <xsl:text>/</xsl:text>
63 <xsl:template match="object">
65 <xsl:when test="substring-after(@name, '.')='theory'">
67 <a class="theory" href="{concat($CICURI, @name)}"
68 helm:helm_link="href">
69 <xsl:value-of select="@name" />
76 href="{concat('cic:', substring-after($CICURI, ':'), @name)}"
77 helm:helm_link="href">
78 <xsl:value-of select="@name" />