2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:ht="http://www.cs.unibo.it/helm/namespaces/helm-theory"
5 xmlns:helm="http://www.cs.unibo.it/helm"
6 xmlns:html="http://www.w3.org/1999/xhtml">
8 <xsl:include href="links_library.xsl" />
10 <!-- add theory's breadcrumb trail -->
11 <xsl:template name="breadcrumb_trail">
12 <xsl:param name="path" select="''" />
13 <xsl:param name="acc" select="''" />
15 <xsl:when test="contains($path, '/')">
16 <xsl:variable name="segment" select="substring-before($path,'/')" />
17 <xsl:variable name="newacc" select="concat($acc, $segment, '/')" />
18 <a style="text-decoration: none"
19 href="{$newacc}" helm:helm_link="href">
20 <xsl:value-of select="$segment" />
22 <xsl:text>/</xsl:text>
23 <xsl:call-template name="breadcrumb_trail">
24 <xsl:with-param name="path" select="substring-after($path,'/')" />
25 <xsl:with-param name="acc" select="$newacc" />
29 <xsl:variable name="path_before_body" select="substring-before($path,'.body')"/>
30 <xsl:variable name="cleanpath">
32 <xsl:when test="$path_before_body = ''">
33 <xsl:value-of select="$path"/>
36 <xsl:value-of select="$path_before_body"/>
40 <xsl:value-of select="$cleanpath" />
45 <xsl:template name="add_breadcrumb_trail">
46 <xsl:param name="CICURI" select="''"/>
47 <xsl:variable name="prefix" select="substring-before($CICURI, ':')" />
48 <table width="100%"><xsl:text>
55 style="font-family: sans-serif; font-weight: bold; font-size: 120%">
56 <a style="text-decoration: none"
57 href="{concat($prefix, ':/')}" helm:helm_link="href">
58 <xsl:value-of select="concat($prefix, ':')" />
60 <xsl:text>/</xsl:text>
61 <xsl:call-template name="breadcrumb_trail">
62 <xsl:with-param name="path"
63 select="substring($CICURI, string-length($prefix)+3)" />
64 <xsl:with-param name="acc" select="concat($prefix, ':/')" />
70 <td style="text-align:right"><xsl:text>
72 <span style="font-family:sans-serif">
73 <xsl:variable name="searchLinkURL">
74 <xsl:call-template name="makeSearchLinkURL" />
76 [<a href="{$searchLinkURL}" target="_top">search</a>]