]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/www/lambdadelta/xslt/lddl_constant.xsl
- xhtbl: minor improvement
[helm.git] / helm / www / lambdadelta / xslt / lddl_constant.xsl
diff --git a/helm/www/lambdadelta/xslt/lddl_constant.xsl b/helm/www/lambdadelta/xslt/lddl_constant.xsl
new file mode 100644 (file)
index 0000000..2767eab
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    ||M||  This file is part of HELM, an Hypertextual, Electronic        
+    ||A||  Library of Mathematics, developed at the Computer Science     
+    ||T||  Department, University of Bologna, Italy.                     
+    ||I||                                                                
+    ||T||  HELM is free software; you can redistribute it and/or         
+    ||A||  modify it under the terms of the GNU General Public License   
+    \   /  version 2 or (at your option) any later version.              
+     \ /   This software is distributed as is, NO WARRANTY.              
+      V_______________________________________________________________ -->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                              xmlns:ld="http://lambdadelta.info/"
+                              xmlns="http://lambdadelta.info/"
+>
+
+<xsl:template name="CONSTANT">
+   <xsl:param name="kind"/>
+   <section5 name="constant">Constant</section5>
+   <subsection name="{$kind}">
+      <xsl:value-of select="$kind"/>
+      <xsl:call-template name="cn"/>
+      <xsl:call-template name="sp"/>   
+      <xsl:call-template name="global"/>
+      <xsl:call-template name="sp"/>
+      <xsl:call-template name="op"/>
+      <xsl:call-template name="mk_path"/>
+      <xsl:call-template name="cp"/>      
+   </subsection>
+   <body>
+      <xsl:call-template name="idescr"/>
+      <xsl:call-template name="qt"/>
+      <xsl:value-of select="@meta"/>
+      <xsl:call-template name="qt"/>
+   </body>
+   <body>
+      <xsl:apply-templates select="*"/>
+   </body>
+</xsl:template>
+
+<xsl:template match="ld:GDec">
+   <xsl:call-template name="CONSTANT">
+      <xsl:with-param name="kind">Declaration</xsl:with-param>
+   </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="ld:GDef">
+   <xsl:call-template name="CONSTANT">
+      <xsl:with-param name="kind">Definition</xsl:with-param>
+   </xsl:call-template>
+</xsl:template>
+
+</xsl:stylesheet>