annotate xml/doc.xsl @ 13:1cd5c7952aaa default tip

fix failure to read first line of Air/Lava, keep me from swimming in Lava, again!
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 30 Jan 2022 14:49:33 -0500
parents 2b399c612a3e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 <?xml version='1.0'?>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 <!DOCTYPE xsl:stylesheet SYSTEM "xsl.dtd" [
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 <!ENTITY nbsp "&#160;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 ]>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 <xsl:param name="font">DejaVu Sans, Arial</xsl:param>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 <xsl:param name="font-size">12pt</xsl:param>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 <xsl:param name="topChrome" select="xyzzy"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 <xsl:param name="botChrome" select="xyzzy"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
14 <xsl:variable name="toc" select="count(//div/@id)>1"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
15
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
16 <!-- The real stylesheet starts here -->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
17 <xsl:template match="/">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
18 <html xmlns="http://www.w3.org/1999/xhtml">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19 <head>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
20 <meta name="copyright" content="Copyright (C) 2007 Henry S. Thompson"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
21 <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
22 <style type="text/css">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
23 @page { size: A4 portrait; margin: 2cm}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
24 @media screen {
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
25 body {width: 20cm; margin-left: auto; margin-right: auto}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
26 }
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
27 body {font-size: <xsl:value-of select="$font-size"/>}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
28 pre.code {font-family: monospace}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
29 pre {margin-left: 0em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
30 ul.nolabel { margin: 0; margin-left: -2.5em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
31 ul.naked li { list-style-type: none }
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
32 ol ol {list-style-type: lower-alpha}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
33 div.ndli { margin-bottom: 1ex }
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
34 .math {font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', serif}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
35 .sub {font-size: 80%; vertical-align: sub}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
36 .termref {text-decoration: none; color: #606000}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
37 div.toc h2 {font-size: 120%; margin-top: 0em; margin-bottom: 0em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
38 div.toc h4 {font-size: 100%; margin-top: 0em; margin-bottom: 0em;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
39 margin-left: 1em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
40 div.toc h1 {font-size: 140%; margin-bottom: 0em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
41 div.toc ul {margin-top: 1ex}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
42 .byline {font-size: 120%}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
43 div.figure {margin-left: 2em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
44 div.caption {font-style: italic; font-weight: bold; margin-top: 1em}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
45 i i {font-style: normal}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
46 <xsl:value-of select="doc/head/style"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
47 <xsl:if test="$topChrome">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
48 <xsl:text>.skiplink {display: none}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
49 div#banner img {border: none}
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
50 A.headertext:link, A.headertext:visited {
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
51 color:#ffffff;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
52 text-decoration:none;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
53 font-weight:bold;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
54 font-size: small;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
55 /* font-size:89%;*/
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
56 }
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
57
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
58 A.headertext:hover, A.headertext:active {
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
59 color:#ffffff;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
60 text-decoration:underline;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
61 font-weight:bold;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
62 font-size: small;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
63 /* font-size:89%;*/
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
64 }</xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
65 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
66 </style>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
67 <title>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
68 <xsl:for-each select="doc/head/title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
69 <xsl:value-of select="."/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
70 </xsl:for-each>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
71 </title>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
72 <xsl:if test="doc/@style">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
73 <link href="http://www.w3.org/StyleSheets/{doc/@style}.css" rel="stylesheet" type="text/css"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
74 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
75 </head>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
76 <body style="font-family: {$font}; background: rgb(254,250,246)">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
77 <xsl:if test="$topChrome">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
78 <xsl:copy-of select="$topChrome"/></xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
79 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
80 <xsl:if test="$botChrome">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
81 <xsl:copy-of select="$botChrome"/></xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
82 </body>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
83 </html>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
84 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
85
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
86 <xsl:template match="doc">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
87 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
88 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
89
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
90 <xsl:template match="head/style"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
91
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
92 <xsl:template match="body">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
93 <xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
94 <xsl:when test="$toc">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
95 <!-- Provide a TOC -->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
96 <xsl:apply-templates select="div[not(@id)]"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
97 <div class="toc">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
98 <h1>Table of Contents</h1>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
99 <ul class="naked">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
100 <xsl:for-each select=".//div[@id]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
101 <li>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
102 <xsl:apply-templates select="title" mode="toc"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
103 </li>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
104 </xsl:for-each>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
105 </ul>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
106 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
107 <xsl:apply-templates select="div[@id]"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
108 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
109 <xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
110 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
111 </xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
112 </xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
113 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
114
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
115 <xsl:template match="head">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
116 <div style="text-align: center">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
117 <xsl:if test="$topChrome//x:a[@href='#main']" xmlns:x="http://www.w3.org/1999/xhtml">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
118 <xsl:attribute name="id">main</xsl:attribute>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
119 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
120 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
121 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
122 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
123
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
124 <xsl:template match="author|date">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
125 <div class="byline">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
126 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
127 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
128 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
129
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
130 <xsl:template match="head/title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
131 <h1>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
132 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
133 </h1>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
134 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
135
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
136 <xsl:template match="div/title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
137 <h2>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
138 <xsl:call-template name="title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
139 <xsl:with-param name="name" select="../@id"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
140 </xsl:call-template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
141 </h2>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
142 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
143
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
144 <xsl:template name="title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
145 <xsl:param name="name" select="xyzzy"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
146 <xsl:param name="href" select="xyzzy"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
147 <xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
148 <xsl:when test="$toc and ($name or $href)">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
149 <xsl:number format="1.1. " level="multiple" count="div[@id]"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
150 <xsl:text> </xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
151 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
152 <xsl:when test="not($toc)">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
153 <xsl:number format="1.1. " level="multiple" count="div"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
154 <xsl:text> </xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
155 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
156 </xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
157 <xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
158 <xsl:when test="$name">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
159 <a name="{$name}">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
160 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
161 </a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
162 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
163 <xsl:when test="$href">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
164 <a href="#{$href}">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
165 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
166 </a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
167 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
168 <xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
169 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
170 </xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
171 </xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
172 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
173
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
174 <xsl:template match="div//div/title" priority="2">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
175 <h4>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
176 <xsl:call-template name="title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
177 <xsl:with-param name="name" select="../@id"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
178 </xsl:call-template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
179 </h4>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
180 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
181
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
182 <xsl:template match="title" mode="toc">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
183 <h2>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
184 <xsl:call-template name="title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
185 <xsl:with-param name="href" select="../@id"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
186 </xsl:call-template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
187 </h2>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
188 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
189
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
190 <xsl:template match="div//div/title" priority="2" mode="toc">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
191 <h4>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
192 <xsl:call-template name="title">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
193 <xsl:with-param name="href" select="../@id"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
194 </xsl:call-template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
195 </h4>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
196 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
197
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
198 <xsl:template match="image[contains(@source,'.svg')]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
199 <xsl:if test="not(substring-after(@source,'.svg')='')"><xsl:message terminate="yes">Confused by internal '.svg' in <xsl:value-of select="@source"/></xsl:message></xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
200 <iframe src="{@source}" frameborder="no" width="100%">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
201 <xsl:for-each select="@*">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
202 <xsl:if test="not(local-name()='source' or local-name()='textGloss' or local-name()='float')">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
203 <xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
204 <xsl:value-of select="."/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
205 </xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
206 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
207 </xsl:for-each>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
208 </iframe>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
209 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
210
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
211 <xsl:template match="image">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
212 <img src="{@source}" style="border: 0">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
213 <xsl:attribute name="alt">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
214 <xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
215 <xsl:when test="@textGloss">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
216 <xsl:value-of select="@textGloss"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
217 </xsl:when>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
218 <xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
219 <xsl:value-of select="."/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
220 </xsl:otherwise>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
221 </xsl:choose>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
222 </xsl:attribute>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
223 <xsl:for-each select="@*">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
224 <xsl:if test="not(local-name()='source' or local-name()='textGloss')">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
225 <xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
226 <xsl:value-of select="."/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
227 </xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
228 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
229 </xsl:for-each>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
230 </img>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
231 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
232
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
233 <xsl:template match="figure">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
234 <div class="figure">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
235 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
236 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
237 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
238
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
239 <xsl:template match="figure/caption">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
240 <div class="caption"><xsl:text>Figure </xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
241 <xsl:number count="figure" level="any"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
242 <xsl:text>. </xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
243 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
244 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
245 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
246
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
247 <xsl:template match="note">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
248 <div style="width: 20%; float: right; clear: right; margin-left: .5em">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
249 <small><i><xsl:apply-templates/></i></small>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
250 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
251 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
252
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
253 <xsl:template match="item/note">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
254 <div style="margin-left: 2em">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
255 <small><i><xsl:apply-templates/></i></small>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
256 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
257 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
258
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
259 <xsl:template match="emph">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
260 <i>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
261 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
262 </i>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
263 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
264
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
265 <xsl:template match="emph[@color]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
266 <span style="color: {@color}">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
267 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
268 </span>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
269 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
270
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
271 <xsl:template match="name">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
272 <b>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
273 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
274 </b>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
275 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
276
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
277 <xsl:template match="link[@href]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
278 <a href="{@href}">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
279 <xsl:if test="@target and not(number(@target))">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
280 <xsl:attribute name="target">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
281 <xsl:value-of select="@target"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
282 </xsl:attribute>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
283 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
284 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
285 </a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
286 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
287
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
288 <xsl:template match="link[@name]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
289 <a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
290 <xsl:attribute name="name">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
291 <xsl:value-of select="@name"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
292 </xsl:attribute>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
293 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
294 </a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
295 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
296
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
297 <xsl:template match="display/node()[self::code and position()=1 and position()=last()]" priority="2">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
298 <pre class="code">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
299 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
300 </pre>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
301 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
302
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
303 <xsl:template match="display">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
304 <blockquote>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
305 <div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
306 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
307 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
308 </blockquote>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
309 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
310
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
311
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
312 <xsl:template match="list[@type=&quot;defn&quot;]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
313 <dl>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
314 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
315 </dl>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
316 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
317
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
318 <xsl:template match="list[@type=&quot;1defn&quot;]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
319 <ul class="naked">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
320 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
321 </ul>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
322 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
323
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
324 <xsl:template match="list[@type=&quot;defn&quot;]/item">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
325 <xsl:variable name="n" select="translate(@term,' /','_.')"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
326 <dt><b>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
327 <a name="{$n}"><xsl:value-of select="@term"/></a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
328 </b></dt>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
329 <dd><xsl:apply-templates/></dd>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
330 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
331
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
332 <xsl:template match="list[@type=&quot;1defn&quot;]/item">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
333 <xsl:variable name="n" select="translate(@term,' /','_.')"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
334 <li>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
335 <a name="{$n}"><b><xsl:value-of select="@term"/></b></a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
336 &nbsp;&nbsp;<xsl:apply-templates/></li>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
337 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
338
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
339 <xsl:template match="term">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
340 <a href="#{translate(@def,' ','_')}" class="termref">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
341 <xsl:text>&#xB7;</xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
342 <xsl:value-of select="@def"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
343 <xsl:text>&#xB7;</xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
344 </a>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
345 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
346
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
347 <xsl:template match="list[@type='normal' or not(@type)]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
348 <!-- Firefox doesn't do local DTD attr defaults :-) -->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
349 <ul>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
350 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
351 </ul>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
352 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
353
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
354 <xsl:template match="list[@type=&quot;enum&quot;]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
355 <ol>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
356 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
357 </ol>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
358 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
359
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
360 <xsl:template match="list/item" priority="0">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
361 <li><xsl:apply-templates/></li>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
362 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
363
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
364 <xsl:template match="list[@type='naked']">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
365 <ul class="naked nolabel">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
366 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
367 </ul>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
368 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
369
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
370 <xsl:template match="list[@type='ndivs']">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
371 <div class="ndl">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
372 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
373 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
374 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
375
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
376 <xsl:template match="list[@type='ndivs']/item">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
377 <div class="ndli">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
378 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
379 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
380 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
381
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
382 <xsl:template match="list[@type='2col']">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
383 <xsl:variable name="n" select="count(item)"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
384 <div style="float: left;width: 50%"><xsl:apply-templates select="item[position()&lt;=($n div 2)]"/></div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
385 <div style="margin-left: 50%"><xsl:apply-templates select="item[position()>($n div 2)]"/></div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
386 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
387
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
388 <xsl:template match="list[@type='2col']/item">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
389 <div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
390 <xsl:if test="../@indent">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
391 <xsl:attribute name="style">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
392 <xsl:text>margin-left: </xsl:text>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
393 <xsl:value-of select="../@indent"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
394 </xsl:attribute>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
395 </xsl:if>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
396 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
397 </div>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
398 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
399
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
400 <xsl:template match="list[@type=&quot;tdefn&quot;]">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
401 <table>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
402 <tbody>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
403 <xsl:apply-templates/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
404 </tbody>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
405 </table>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
406 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
407
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
408 <xsl:template match="list[@type='tdefn']/item">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
409 <tr>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
410 <td><xsl:value-of select="@term"/></td>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
411 <td><xsl:apply-templates/></td>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
412 </tr>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
413 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
414
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
415 <xsl:template match="div|p|table|code|caption|col|colgroup|thead|tfoot|tbody|td|th|span|sup|sub|tr">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
416 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
417 <xsl:apply-templates select="@*|node()"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
418 </xsl:element>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
419 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
420
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
421 <!--
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
422 XHTML
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
423
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
424 We just copy any unrecognised stuff, as is.
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
425 This means you can mix XHTML with no-namespace elts and
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
426 get the 'right' effect.
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
427 -->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
428
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
429 <xsl:template match="*|@*">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
430 <xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
431 <xsl:apply-templates select="* | @* | text()"/>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
432 </xsl:copy>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
433 </xsl:template>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
434
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
435 </xsl:stylesheet>