]> matita.cs.unibo.it Git - helm.git/commitdiff
Handling of the splitting of constants in body + type.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Oct 2002 15:46:08 +0000 (15:46 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Oct 2002 15:46:08 +0000 (15:46 +0000)
helm/on-line/xslt/ls2html.xsl

index a99a98f23f7c3de1192334a59a6a541608379b9d..f0376baa5aa5a313157b0bfd8a906a6078fce3a0 100644 (file)
  <xsl:variable name="name" select="@name"/>
  <xsl:variable name="ann" select="ann/@value"/>
  <xsl:variable name="types" select="types/@value"/>
+ <xsl:variable name="body" select="body/@value"/>
  <xsl:variable name="icon">
   <xsl:choose>
    <xsl:when test="$ann = 'YES'">text.gif</xsl:when>
      <xsl:with-param name="s" select="$name"/>
     </xsl:call-template>
    </xsl:variable>
+   <xsl:variable name="quotedbodyname">
+    <xsl:call-template name="jsquote">
+     <xsl:with-param name="s" select="concat($name,'.body')"/>
+    </xsl:call-template>
+   </xsl:variable>
    <a href="" target="{$target}"
       onClick="this.href=makeURL('{$target}','{concat($quoteduri,$quotedname)}','{$ann}','{$types}')"
       onMouseOver="window.status='{concat($quoteduri,$quotedname)}'; return true"
    ><xsl:value-of select="$name"/></a>
+   <xsl:if test="not($body='NO')">
+    <xsl:text> </xsl:text>
+    <a href="" target="{$target}"
+       onClick="this.href=makeURL('{$target}','{concat($quoteduri,$quotedbodyname)}','{$ann}','{$types}')"
+       onMouseOver="window.status='{concat($quoteduri,$quotedname)}'; return true"
+    >Body</a>
+   </xsl:if>
   </td>
  </tr>
 </xsl:template>