3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:subst="http://www.cs.unibo.it/helm/subst">
6 <xsl:import href="links_library.xsl"/>
7 <xsl:import href="params.xsl"/>
12 media-type="text/html" />
14 <xsl:param name="proofcheckerURL" select="''"/>
15 <xsl:param name="interfaceURL" select="''"/>
16 <xsl:param name="processorURL" select="''"/>
17 <xsl:param name="getterURL" select="''"/>
18 <xsl:param name="draw_graphURL" select="''"/>
19 <xsl:param name="profile" select="''"/>
20 <xsl:param name="url" select="''"/>
21 <xsl:param name="CICURI" select="''"/>
22 <xsl:param name="annotations" select="''"/>
24 <xsl:template match="subst:script">
25 <xsl:copy-of select="document(concat($interfaceURL,@src,'_xml'))" />
28 <xsl:template match="subst:proofcheckerURL">
29 <xsl:value-of select="$proofcheckerURL"/>
32 <xsl:template match="subst:interfaceURL">
33 <xsl:value-of select="$interfaceURL"/>
36 <xsl:template match="subst:processorURL">
37 <xsl:value-of select="$processorURL"/>
40 <xsl:template match="subst:getterURL">
41 <xsl:value-of select="$getterURL"/>
44 <xsl:template match="subst:draw_graphURL">
45 <xsl:value-of select="$draw_graphURL"/>
48 <xsl:template match="subst:profile">
49 <xsl:value-of select="$profile"/>
52 <xsl:template match="subst:url">
53 <xsl:value-of select="$url"/>
56 <xsl:template match="subst:CICURI">
57 <xsl:value-of select="$CICURI"/>
60 <xsl:template match="subst:base_CICURI">
61 <xsl:variable name="len" select="string-length($CICURI)" />
62 <xsl:variable name="extension">
64 <xsl:when test="substring($CICURI,$len)='/'">#</xsl:when>
65 <xsl:when test="substring($CICURI,$len - 6)='.theory'">.theory</xsl:when>
66 <xsl:when test="substring($CICURI,$len - 3)='.con'">.con</xsl:when>
67 <xsl:when test="substring($CICURI,$len - 3)='.ind'">.ind</xsl:when>
68 <xsl:when test="substring($CICURI,$len - 3)='.var'">.var</xsl:when>
69 <xsl:when test="substring($CICURI,$len - 8)='.con.body'">.con.body</xsl:when>
72 <xsl:message terminate="no">
73 resolve_topurl.xsl: assertion failed
79 <xsl:call-template name="name_of_uri">
80 <xsl:with-param name="uri">
82 <xsl:when test="substring($CICURI,$len)='/'">
83 <xsl:value-of select="concat(substring($CICURI,1,$len - 1),'#')" />
86 <xsl:value-of select="$CICURI" />
90 <xsl:with-param name="extension" select="$extension" />
94 <xsl:template match="subst:annotations">
95 <xsl:value-of select="$annotations"/>
98 <xsl:template match="subst:makeURL">
99 <xsl:call-template name="makeURL">
100 <xsl:with-param name="uri" select="$CICURI"/>
101 <xsl:with-param name="createframeset" select="false()"/>
105 <xsl:template match="subst:makeTheoryURL">
106 <xsl:call-template name="makeTheoryURL">
107 <xsl:with-param name="uri" select="$CICURI"/>
108 <xsl:with-param name="createframeset" select="false()"/>
112 <xsl:template match="/|*">
114 <xsl:copy-of select="@*"/>
115 <xsl:apply-templates/>