summaryrefslogtreecommitdiff
path: root/xslt/mallard/common/mal-chunk.xsl
blob: 4b27dd82df72ca091b4725826b56fad00d020376 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
<!--
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.

You should have received a copy of the GNU Lesser General Public License
along with this program; see the file COPYING.LGPL.  If not, see <http://www.gnu.org/licenses/>.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:exsl="http://exslt.org/common"
                extension-element-prefixes="exsl"
                version="1.0">

<!--!!==========================================================================
Chunking

REMARK: Describe this module
-->


<!--@@==========================================================================
mal.chunk.chunk_top
Whether the top-level page should be output with the chunking mechanism

REMARK: Describe what this does
-->
<xsl:param name="mal.chunk.chunk_top" select="false()"/>


<!--@@==========================================================================
mal.chunk.extension
The default file extension for new output documents

REMARK: Describe what this does
-->
<xsl:param name="mal.chunk.extension"/>


<!--@@==========================================================================
mal.chunk.doctype_public
The public DOCTYPE for output files

REMARK: Describe this
-->
<xsl:param name="mal.chunk.doctype_public"/>


<!--@@==========================================================================
mal.chunk.doctype_system
The system DOCTYPE for output files

REMARK: Describe this
-->
<xsl:param name="mal.chunk.doctype_system"/>


<!--**==========================================================================
mal.chunk
Creates a new page of output
$node: The source element for the output page
$href: The name of the file for the output page

REMARK: Describe
-->
<xsl:template name="mal.chunk">
  <xsl:param name="node" select="."/>
  <xsl:param name="href" select="concat($node/@id, $mal.chunk.extension)"/>
  <exsl:document href="{$href}"
                 doctype-public="{$mal.chunk.doctype_public}"
                 doctype-system="{$mal.chunk.doctype_system}">
    <xsl:apply-templates mode="mal.chunk.content.mode" select="$node"/>
  </exsl:document>
</xsl:template>

<!--%%==========================================================================
mal.chunk.content.mode
FIXME

FIXME
-->

</xsl:stylesheet>