]> matita.cs.unibo.it Git - helm.git/blob - helm/style/theory_pres.xsl
Requires and Provides now fixed
[helm.git] / helm / style / theory_pres.xsl
1 <?xml version="1.0"?>
2
3 <!--***********************************************************************--> 
4 <!-- XSLT version 0.1 of theory sections to HTML:                          -->
5 <!-- First draft: May 10 2000, Irene Schena                                -->
6 <!--              November 15 2000, Irene Schena                           -->
7 <!--***********************************************************************--> 
8
9 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10                               xmlns:m="http://www.w3.org/1998/Math/MathML">
11
12 <xsl:import href="annotatedpres.xsl"/>
13
14 <xsl:template match="SECTION">
15 <xsl:param name="subsect" select="0"/>
16     <xsl:choose>
17     <xsl:when test="$subsect = 0">
18      <html> 
19       <head></head>
20       <body>
21        <m:math><m:mtext>BEGIN SECTION</m:mtext></m:math>
22        <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
23        <m:math><m:mtext>END SECTION</m:mtext></m:math>
24       </body>
25      </html>
26     </xsl:when>
27     <xsl:otherwise>
28      <m:math><m:mtext>BEGIN SECTION</m:mtext></m:math>
29       <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
30      <m:math><m:mtext>END SECTION</m:mtext></m:math>
31     </xsl:otherwise>
32     </xsl:choose>
33 </xsl:template>
34
35 </xsl:stylesheet>