]> matita.cs.unibo.it Git - helm.git/commitdiff
Links not starting with cic: or theory: are now left untouched and
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 4 May 2001 09:13:53 +0000 (09:13 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 4 May 2001 09:13:53 +0000 (09:13 +0000)
open a new _blank window

helm/style/link.xsl

index d3c78eaff1522182fe734206fd826ee6e3c09340..58afa70d821c01140b513f80bb9d5025f782ebf1 100644 (file)
@@ -60,7 +60,7 @@
    <xsl:copy>
     <xsl:copy-of select="@*"/> 
     <xsl:choose>
-    <xsl:when test="starts-with(@href,&quot;cic&quot;)">
+    <xsl:when test="starts-with(@href,&quot;cic:&quot;)">
      <xsl:attribute name="href">
       <xsl:call-template name="makeURL">
        <xsl:with-param name="uri" select="@href"/>
      </xsl:attribute>
      <xsl:attribute name="target">cic</xsl:attribute>
     </xsl:when>
-    <xsl:otherwise>
+    <xsl:when test="starts-with(@href,&quot;theory:&quot;)">
      <xsl:attribute name="href">
       <xsl:call-template name="makeTheoryURL">
        <xsl:with-param name="uri" select="@href"/>
       </xsl:call-template>
      </xsl:attribute>
      <xsl:attribute name="target">theory</xsl:attribute>
+    </xsl:when>
+    <xsl:otherwise>
+     <xsl:attribute name="href"><xsl:value-of  select="@href"/></xsl:attribute>
+     <xsl:attribute name="target">_blank</xsl:attribute>
     </xsl:otherwise>
     </xsl:choose>
     <xsl:apply-templates/>