]> matita.cs.unibo.it Git - helm.git/blob - helm/style/theory_pres.xsl
9a96cdc03cea183213b832bafe54da65d6e9d2ff
[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 <!--***********************************************************************--> 
7
8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9                               xmlns:m="http://www.w3.org/1998/Math/MathML">
10
11 <xsl:include href="annotatedpres.xsl"/>
12
13 <xsl:template match="SECTION">
14 <xsl:param name="subsect" select="0"/>
15     <xsl:choose>
16     <xsl:when test="$subsect = 0">
17      <html> 
18       <head></head>
19       <body>
20        <m:math><m:mtext>BEGIN SECTION</m:mtext></m:math>
21        <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
22        <m:math><m:mtext>END SECTION</m:mtext></m:math>
23       </body>
24      </html>
25     </xsl:when>
26     <xsl:otherwise>
27      <m:math><m:mtext>BEGIN SECTION</m:mtext></m:math>
28       <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
29      <m:math><m:mtext>END SECTION</m:mtext></m:math>
30     </xsl:otherwise>
31     </xsl:choose>
32 </xsl:template>
33
34 </xsl:stylesheet>