]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/xml/ld-html-entity.xsl
- lddl html pages: the transition to xhtml 1.1 + css 2 is complete
[helm.git] / helm / software / lambda-delta / xml / ld-html-entity.xsl
index 689eb14207b9cd1a15f508ac6fdb2f166fb0d28b..676d37722f9fbbd426abf6a26b4ef51b12e73fe9 100644 (file)
 
 <xsl:strip-space elements="ABST ABBR"/>
 
-<xsl:template match="ABST">
-   <h2>
+<xsl:template name="ENTITY">
+   <xsl:param name="kind"/>
+   <div class="head2">
       <span class="global">
-         <xsl:text>Declaration:</xsl:text>
-         <xsl:call-template name="entity"/>
+         <xsl:value-of select="$kind"/>
+         <xsl:call-template name="cn"/>
+         <xsl:call-template name="sp"/>
+         <span class="gref">   
+            <xsl:call-template name="global"/>
+         </span>
+         <xsl:call-template name="sp"/>
+         <xsl:call-template name="op"/>
+         <span class="gref">
+            <xsl:call-template name="mk_path"/>
+         </span>
+         <xsl:call-template name="cp"/>
       </span>      
-   </h2>
-   <xsl:call-template name="META"/>
-   <div><xsl:apply-templates/></div>
+   </div>
+   <div class="text">
+      <xsl:call-template name="idescr"/>
+      <xsl:call-template name="qt"/>
+      <xsl:value-of select="@meta"/>
+      <xsl:call-template name="qt"/>
+   </div>
+   <div class="text">
+      <xsl:apply-templates/>
+   </div>
+</xsl:template>
+
+<xsl:template match="ABST">
+   <xsl:call-template name="ENTITY">
+      <xsl:with-param name="kind">Declaration</xsl:with-param>
+   </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="ABBR">
-   <h2>
-      <span class="global">
-         <xsl:text>Definition:</xsl:text>
-         <xsl:call-template name="entity"/>
-      </span>
-   </h2>
-   <xsl:call-template name="META"/>
-   <div><xsl:apply-templates/></div>
+   <xsl:call-template name="ENTITY">
+      <xsl:with-param name="kind">Definition</xsl:with-param>
+   </xsl:call-template>
 </xsl:template>
 
 </xsl:stylesheet>