Debian Codegraph @

xslt/mallard/html/mal2xhtml.xsl

raw
1 <?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
2 <!--
3 This program is free software; you can redistribute it and/or modify it under
4 the terms of the GNU Lesser General Public License as published by the Free
5 Software Foundation; either version 2 of the License, or (at your option) any
6 later version.
7
8 This program is distributed in the hope that it will be useful, but WITHOUT
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 details.
12
13 You should have received a copy of the GNU Lesser General Public License
14 along with this program; see the file COPYING.LGPL. If not, see <http://www.gnu.org/licenses/>.
15 -->
16
17 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
18 xmlns:mal="http://projectmallard.org/1.0/"
19 xmlns="http://www.w3.org/1999/xhtml"
20 exclude-result-prefixes="mal"
21 version="1.0">
22
23
24 <!--!!==========================================================================
25 Mallard to XHTML
26 Transform Mallard to XHTML.
27 @revision[version=3.8 date=2012-11-05 status=final]
28
29 This top-level stylesheet includes all the necessary stylesheets to transform
30 Mallard documents into XHTML. This stylesheet sets the parameters
31 {mal.if.target}, {mal.if.features}, {mal.if.maybe}, {mal.link.extension},
32 and {ttml.features}.
33 -->
34
35 <xsl:import href="../../common/l10n.xsl"/>
36 <xsl:import href="../../common/color.xsl"/>
37 <xsl:import href="../../common/icons.xsl"/>
38 <xsl:import href="../../common/html.xsl"/>
39 <xsl:import href="../../common/ttml.xsl"/>
40 <xsl:import href="../../common/tmpl.xsl"/>
41 <xsl:import href="../../common/utils.xsl"/>
42
43 <xsl:import href="../common/mal-gloss.xsl"/>
44 <xsl:import href="../common/mal-if.xsl"/>
45 <xsl:import href="../common/mal-link.xsl"/>
46
47 <xsl:param name="ttml.features" select="'
48 http://www.w3.org/ns/ttml/feature/#content
49 http://www.w3.org/ns/ttml/feature/#core
50 http://www.w3.org/ns/ttml/feature/#nested-div
51 http://www.w3.org/ns/ttml/feature/#nested-span
52 http://www.w3.org/ns/ttml/feature/#presentation
53 http://www.w3.org/ns/ttml/feature/#profile
54 http://www.w3.org/ns/ttml/feature/#structure
55 http://www.w3.org/ns/ttml/feature/#time-offset
56 http://www.w3.org/ns/ttml/feature/#timing
57 '"/>
58 <xsl:param name="mal.if.target" select="'target:html target:xhtml'"/>
59 <xsl:param name="mal.if.features" select="concat('
60 mallard:1.0
61 mallard:1.1
62 mallard:if/1.0
63 ', $ttml.features)"/>
64 <xsl:param name="mal.if.maybe" select="'target:mobile'"/>
65 <xsl:param name="mal.link.extension" select="$html.extension"/>
66
67 <xsl:include href="mal2html-api.xsl"/>
68 <xsl:include href="mal2html-block.xsl"/>
69 <xsl:include href="mal2html-gloss.xsl"/>
70 <xsl:include href="mal2html-inline.xsl"/>
71 <xsl:include href="mal2html-links.xsl"/>
72 <xsl:include href="mal2html-list.xsl"/>
73 <xsl:include href="mal2html-math.xsl"/>
74 <xsl:include href="mal2html-media.xsl"/>
75 <xsl:include href="mal2html-page.xsl"/>
76 <xsl:include href="mal2html-svg.xsl"/>
77 <xsl:include href="mal2html-table.xsl"/>
78 <xsl:include href="mal2html-ui.xsl"/>
79
80
81 </xsl:stylesheet>