summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-xhtml.xsl
blob: 7b56175b8d65726d2d821a18482515ae7b83cada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8"?>
<!--
/=====================================================================\ 
|  LaTeXML-xhtml.xsl                                                  |
|  Stylesheet for converting LaTeXML documents to xhtml               |
|=====================================================================|
| Part of LaTeXML:                                                    |
|  Public domain software, produced as part of work done by the       |
|  United States Government & not subject to copyright in the US.     |
|=====================================================================|
| Bruce Miller <bruce.miller@nist.gov>                        #_#     |
| http://dlmf.nist.gov/LaTeXML/                              (o o)    |
\=========================================================ooo==U==ooo=/
-->
<xsl:stylesheet
    version     = "1.0"
    xmlns:xsl   = "http://www.w3.org/1999/XSL/Transform"
    xmlns:ltx   = "http://dlmf.nist.gov/LaTeXML"
    xmlns       = "http://www.w3.org/1999/xhtml"
    xmlns:m     = "http://www.w3.org/1998/Math/MathML"
    xmlns:svg   = "http://www.w3.org/2000/svg"
    exclude-result-prefixes = "ltx">

  <xsl:output method="xml"
	      doctype-public = "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
	      doctype-system = "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"
	      media-type     = 'application/xhtml+xml'
	      encoding       = 'utf-8'
	      indent         = "yes"/>
<!--	      doctype-system = "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"  -->
  <xsl:template name="metatype">
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
  </xsl:template>

  <xsl:template match="/"> 
    <html xmlns     = "http://www.w3.org/1999/xhtml"
	  xmlns:m   = "http://www.w3.org/1998/Math/MathML"
	  xmlns:svg = "http://www.w3.org/2000/svg">
      <xsl:copy-of select="/ltx:document/namespace::*[not(local-name() = 'ltx')]"/>
      <xsl:call-template name="head"/>
      <xsl:call-template name="body"/><xsl:text>
    </xsl:text>
    </html>
  </xsl:template>

<xsl:include href="LaTeXML-common.xsl"/>
<xsl:include href="LaTeXML-inline-xhtml.xsl"/>
<xsl:include href="LaTeXML-block-xhtml.xsl"/>
<xsl:include href="LaTeXML-para-xhtml.xsl"/>
<xsl:include href="LaTeXML-math-mathml.xsl"/>
<xsl:include href="LaTeXML-tabular-xhtml.xsl"/>
<xsl:include href="LaTeXML-picture-svg.xsl"/>
<xsl:include href="LaTeXML-structure-xhtml.xsl"/>
<xsl:include href="LaTeXML-bib-xhtml.xsl"/>

<xsl:include href="LaTeXML-webpage-xhtml.xsl"/>

</xsl:stylesheet>