Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 3 | <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" |
| 4 | doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 5 | doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 6 | |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 7 | <xsl:variable name="href_base">../</xsl:variable> |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 8 | <!-- |
| 9 | - returns the filename associated to an ID in the original file |
| 10 | --> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 11 | <xsl:template name="tocfilename"> |
| 12 | <xsl:param name="name" select="string(@href)"/> |
| 13 | <xsl:choose> |
| 14 | <xsl:when test="$name = '#Introducti'"> |
| 15 | <xsl:text>intro.html</xsl:text> |
| 16 | </xsl:when> |
| 17 | <xsl:when test="$name = '#Documentat'"> |
| 18 | <xsl:text>docs.html</xsl:text> |
| 19 | </xsl:when> |
| 20 | <xsl:when test="$name = '#Reporting'"> |
| 21 | <xsl:text>bugs.html</xsl:text> |
| 22 | </xsl:when> |
| 23 | <xsl:when test="$name = '#help'"> |
| 24 | <xsl:text>help.html</xsl:text> |
| 25 | </xsl:when> |
| 26 | <xsl:when test="$name = '#Help'"> |
| 27 | <xsl:text>help.html</xsl:text> |
| 28 | </xsl:when> |
| 29 | <xsl:when test="$name = '#Downloads'"> |
| 30 | <xsl:text>downloads.html</xsl:text> |
| 31 | </xsl:when> |
| 32 | <xsl:when test="$name = '#News'"> |
| 33 | <xsl:text>news.html</xsl:text> |
| 34 | </xsl:when> |
| 35 | <xsl:when test="$name = '#Contributi'"> |
| 36 | <xsl:text>contribs.html</xsl:text> |
| 37 | </xsl:when> |
| 38 | <xsl:when test="$name = '#xsltproc'"> |
| 39 | <xsl:text>xsltproc2.html</xsl:text> |
| 40 | </xsl:when> |
| 41 | <xsl:when test="$name = '#API'"> |
| 42 | <xsl:text></xsl:text> |
| 43 | </xsl:when> |
| 44 | <xsl:when test="$name = '#XSLT'"> |
| 45 | <xsl:text>XSLT.html</xsl:text> |
| 46 | </xsl:when> |
| 47 | <xsl:when test="$name = '#XML'"> |
| 48 | <xsl:text>XMLinfo.html</xsl:text> |
| 49 | </xsl:when> |
| 50 | <xsl:when test="$name = '#Validation'"> |
| 51 | <xsl:text>xmldtd.html</xsl:text> |
| 52 | </xsl:when> |
| 53 | <xsl:when test="$name = '#tree'"> |
| 54 | <xsl:text></xsl:text> |
| 55 | </xsl:when> |
| 56 | <xsl:when test="$name = '#library'"> |
| 57 | <xsl:text></xsl:text> |
| 58 | </xsl:when> |
| 59 | <xsl:when test="$name = '#interface'"> |
| 60 | <xsl:text></xsl:text> |
| 61 | </xsl:when> |
| 62 | <xsl:when test="$name = '#Example'"> |
| 63 | <xsl:text></xsl:text> |
| 64 | </xsl:when> |
| 65 | <xsl:when test="$name = '#Entities'"> |
| 66 | <xsl:text></xsl:text> |
| 67 | </xsl:when> |
| 68 | <xsl:when test="$name = '#architecture'"> |
| 69 | <xsl:text></xsl:text> |
| 70 | </xsl:when> |
| 71 | <xsl:when test="$name = '#Namespaces'"> |
| 72 | <xsl:text>namespaces.html</xsl:text> |
| 73 | </xsl:when> |
| 74 | <xsl:when test="$name = '#DOM'"> |
| 75 | <xsl:text></xsl:text> |
| 76 | </xsl:when> |
| 77 | <xsl:when test="$name = '#Catalog'"> |
| 78 | <xsl:text>catalog.html</xsl:text> |
| 79 | </xsl:when> |
| 80 | <xsl:when test="$name = '#Upgrading'"> |
| 81 | <xsl:text></xsl:text> |
| 82 | </xsl:when> |
| 83 | <xsl:when test="$name = '#Encodings'"> |
| 84 | <xsl:text>encoding.html</xsl:text> |
| 85 | </xsl:when> |
| 86 | <xsl:when test="$name = '#IO'"> |
| 87 | <xsl:text></xsl:text> |
| 88 | </xsl:when> |
| 89 | <xsl:when test="$name = '#Memory'"> |
| 90 | <xsl:text></xsl:text> |
| 91 | </xsl:when> |
| 92 | <xsl:when test="$name = '#Thread'"> |
| 93 | <xsl:text></xsl:text> |
| 94 | </xsl:when> |
| 95 | <xsl:when test="$name = '#FAQ'"> |
| 96 | <xsl:text>FAQ.html</xsl:text> |
| 97 | </xsl:when> |
| 98 | <xsl:when test="$name = '#Python'"> |
| 99 | <xsl:text></xsl:text> |
| 100 | </xsl:when> |
| 101 | <xsl:when test="$name = ''"> |
| 102 | <xsl:text>unknown.html</xsl:text> |
| 103 | </xsl:when> |
| 104 | <xsl:otherwise> |
| 105 | <xsl:value-of select="$name"/> |
| 106 | </xsl:otherwise> |
| 107 | </xsl:choose> |
| 108 | </xsl:template> |
| 109 | <xsl:template name="docfilename"> |
| 110 | <xsl:param name="name" select="string(@href)"/> |
| 111 | <xsl:choose> |
| 112 | <xsl:when test="$name = '#Introducti'"> |
| 113 | <xsl:text></xsl:text> |
| 114 | </xsl:when> |
| 115 | <xsl:when test="$name = '#Documentat'"> |
| 116 | <xsl:text></xsl:text> |
| 117 | </xsl:when> |
| 118 | <xsl:when test="$name = '#Reporting'"> |
| 119 | <xsl:text></xsl:text> |
| 120 | </xsl:when> |
| 121 | <xsl:when test="$name = '#help'"> |
| 122 | <xsl:text></xsl:text> |
| 123 | </xsl:when> |
| 124 | <xsl:when test="$name = '#Help'"> |
| 125 | <xsl:text></xsl:text> |
| 126 | </xsl:when> |
| 127 | <xsl:when test="$name = '#Downloads'"> |
| 128 | <xsl:text></xsl:text> |
| 129 | </xsl:when> |
| 130 | <xsl:when test="$name = '#News'"> |
| 131 | <xsl:text></xsl:text> |
| 132 | </xsl:when> |
| 133 | <xsl:when test="$name = '#Contributi'"> |
| 134 | <xsl:text></xsl:text> |
| 135 | </xsl:when> |
| 136 | <xsl:when test="$name = '#xsltproc'"> |
| 137 | <xsl:text>xsltproc2.html</xsl:text> |
| 138 | </xsl:when> |
| 139 | <xsl:when test="$name = '#API'"> |
| 140 | <xsl:text>API.html</xsl:text> |
| 141 | </xsl:when> |
| 142 | <xsl:when test="$name = '#XSLT'"> |
| 143 | <xsl:text>XSLT.html</xsl:text> |
| 144 | </xsl:when> |
| 145 | <xsl:when test="$name = '#XML'"> |
| 146 | <xsl:text></xsl:text> |
| 147 | </xsl:when> |
| 148 | <xsl:when test="$name = '#Validation'"> |
| 149 | <xsl:text></xsl:text> |
| 150 | </xsl:when> |
| 151 | <xsl:when test="$name = '#tree'"> |
| 152 | <xsl:text>tree.html</xsl:text> |
| 153 | </xsl:when> |
| 154 | <xsl:when test="$name = '#library'"> |
| 155 | <xsl:text>library.html</xsl:text> |
| 156 | </xsl:when> |
| 157 | <xsl:when test="$name = '#interface'"> |
| 158 | <xsl:text>interface.html</xsl:text> |
| 159 | </xsl:when> |
| 160 | <xsl:when test="$name = '#Example'"> |
| 161 | <xsl:text>example.html</xsl:text> |
| 162 | </xsl:when> |
| 163 | <xsl:when test="$name = '#Entities'"> |
| 164 | <xsl:text>entities.html</xsl:text> |
| 165 | </xsl:when> |
| 166 | <xsl:when test="$name = '#architecture'"> |
| 167 | <xsl:text>architecture.html</xsl:text> |
| 168 | </xsl:when> |
| 169 | <xsl:when test="$name = '#Namespaces'"> |
| 170 | <xsl:text>namespaces.html</xsl:text> |
| 171 | </xsl:when> |
| 172 | <xsl:when test="$name = '#DOM'"> |
| 173 | <xsl:text>DOM.html</xsl:text> |
| 174 | </xsl:when> |
| 175 | <xsl:when test="$name = '#Catalog'"> |
| 176 | <xsl:text></xsl:text> |
| 177 | </xsl:when> |
| 178 | <xsl:when test="$name = '#Upgrading'"> |
| 179 | <xsl:text>upgrade.html</xsl:text> |
| 180 | </xsl:when> |
| 181 | <xsl:when test="$name = '#Encodings'"> |
| 182 | <xsl:text></xsl:text> |
| 183 | </xsl:when> |
| 184 | <xsl:when test="$name = '#IO'"> |
| 185 | <xsl:text>xmlio.html</xsl:text> |
| 186 | </xsl:when> |
| 187 | <xsl:when test="$name = '#Memory'"> |
| 188 | <xsl:text>xmlmem.html</xsl:text> |
| 189 | </xsl:when> |
| 190 | <xsl:when test="$name = '#Thread'"> |
| 191 | <xsl:text>threads.html</xsl:text> |
| 192 | </xsl:when> |
| 193 | <xsl:when test="$name = '#FAQ'"> |
| 194 | <xsl:text></xsl:text> |
| 195 | </xsl:when> |
| 196 | <xsl:when test="$name = '#Python'"> |
| 197 | <xsl:text>python.html</xsl:text> |
| 198 | </xsl:when> |
| 199 | <xsl:when test="$name = ''"> |
| 200 | <xsl:text>unknown.html</xsl:text> |
| 201 | </xsl:when> |
| 202 | <xsl:otherwise> |
| 203 | <xsl:value-of select="$name"/> |
| 204 | </xsl:otherwise> |
| 205 | </xsl:choose> |
| 206 | </xsl:template> |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 207 | <xsl:template name="filename"> |
| 208 | <xsl:param name="name" select="string(@href)"/> |
| 209 | <xsl:choose> |
| 210 | <xsl:when test="$name = '#Introducti'"> |
| 211 | <xsl:text>intro.html</xsl:text> |
| 212 | </xsl:when> |
| 213 | <xsl:when test="$name = '#Documentat'"> |
| 214 | <xsl:text>docs.html</xsl:text> |
| 215 | </xsl:when> |
| 216 | <xsl:when test="$name = '#Reporting'"> |
| 217 | <xsl:text>bugs.html</xsl:text> |
| 218 | </xsl:when> |
| 219 | <xsl:when test="$name = '#help'"> |
| 220 | <xsl:text>help.html</xsl:text> |
| 221 | </xsl:when> |
| 222 | <xsl:when test="$name = '#Help'"> |
| 223 | <xsl:text>help.html</xsl:text> |
| 224 | </xsl:when> |
| 225 | <xsl:when test="$name = '#Downloads'"> |
| 226 | <xsl:text>downloads.html</xsl:text> |
| 227 | </xsl:when> |
| 228 | <xsl:when test="$name = '#News'"> |
| 229 | <xsl:text>news.html</xsl:text> |
| 230 | </xsl:when> |
| 231 | <xsl:when test="$name = '#Contributi'"> |
| 232 | <xsl:text>contribs.html</xsl:text> |
| 233 | </xsl:when> |
| 234 | <xsl:when test="$name = '#xsltproc'"> |
| 235 | <xsl:text>xsltproc2.html</xsl:text> |
| 236 | </xsl:when> |
| 237 | <xsl:when test="$name = '#API'"> |
| 238 | <xsl:text>API.html</xsl:text> |
| 239 | </xsl:when> |
| 240 | <xsl:when test="$name = '#XSLT'"> |
| 241 | <xsl:text>XSLT.html</xsl:text> |
| 242 | </xsl:when> |
| 243 | <xsl:when test="$name = '#XML'"> |
Daniel Veillard | 7b602b4 | 2002-01-08 13:26:00 +0000 | [diff] [blame] | 244 | <xsl:text>XMLinfo.html</xsl:text> |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 245 | </xsl:when> |
| 246 | <xsl:when test="$name = '#Validation'"> |
| 247 | <xsl:text>xmldtd.html</xsl:text> |
| 248 | </xsl:when> |
| 249 | <xsl:when test="$name = '#tree'"> |
| 250 | <xsl:text>tree.html</xsl:text> |
| 251 | </xsl:when> |
| 252 | <xsl:when test="$name = '#library'"> |
| 253 | <xsl:text>library.html</xsl:text> |
| 254 | </xsl:when> |
| 255 | <xsl:when test="$name = '#interface'"> |
| 256 | <xsl:text>interface.html</xsl:text> |
| 257 | </xsl:when> |
| 258 | <xsl:when test="$name = '#Example'"> |
| 259 | <xsl:text>example.html</xsl:text> |
| 260 | </xsl:when> |
| 261 | <xsl:when test="$name = '#Entities'"> |
| 262 | <xsl:text>entities.html</xsl:text> |
| 263 | </xsl:when> |
| 264 | <xsl:when test="$name = '#architecture'"> |
| 265 | <xsl:text>architecture.html</xsl:text> |
| 266 | </xsl:when> |
| 267 | <xsl:when test="$name = '#Namespaces'"> |
| 268 | <xsl:text>namespaces.html</xsl:text> |
| 269 | </xsl:when> |
| 270 | <xsl:when test="$name = '#DOM'"> |
| 271 | <xsl:text>DOM.html</xsl:text> |
| 272 | </xsl:when> |
| 273 | <xsl:when test="$name = '#Catalog'"> |
| 274 | <xsl:text>catalog.html</xsl:text> |
| 275 | </xsl:when> |
| 276 | <xsl:when test="$name = '#Upgrading'"> |
| 277 | <xsl:text>upgrade.html</xsl:text> |
| 278 | </xsl:when> |
| 279 | <xsl:when test="$name = '#Encodings'"> |
| 280 | <xsl:text>encoding.html</xsl:text> |
| 281 | </xsl:when> |
| 282 | <xsl:when test="$name = '#IO'"> |
| 283 | <xsl:text>xmlio.html</xsl:text> |
| 284 | </xsl:when> |
| 285 | <xsl:when test="$name = '#Memory'"> |
| 286 | <xsl:text>xmlmem.html</xsl:text> |
| 287 | </xsl:when> |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 288 | <xsl:when test="$name = '#Thread'"> |
| 289 | <xsl:text>threads.html</xsl:text> |
| 290 | </xsl:when> |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 291 | <xsl:when test="$name = '#FAQ'"> |
| 292 | <xsl:text>FAQ.html</xsl:text> |
| 293 | </xsl:when> |
Daniel Veillard | 6dbcaf8 | 2002-02-20 14:37:47 +0000 | [diff] [blame] | 294 | <xsl:when test="$name = '#Python'"> |
| 295 | <xsl:text>python.html</xsl:text> |
| 296 | </xsl:when> |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 297 | <xsl:when test="$name = ''"> |
| 298 | <xsl:text>unknown.html</xsl:text> |
| 299 | </xsl:when> |
| 300 | <xsl:otherwise> |
| 301 | <xsl:value-of select="$name"/> |
| 302 | </xsl:otherwise> |
| 303 | </xsl:choose> |
| 304 | </xsl:template> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 305 | <!-- |
| 306 | - The global title |
| 307 | --> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 308 | <xsl:variable name="globaltitle" select="string(/html/body/h1[1])"/> |
| 309 | <!-- |
| 310 | - The table of content |
| 311 | --> |
| 312 | <xsl:variable name="toc"> |
Daniel Veillard | 4a603e4 | 2003-01-11 14:18:53 +0000 | [diff] [blame] | 313 | <form action="search.php" |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 314 | enctype="application/x-www-form-urlencoded" method="get"> |
| 315 | <input name="query" type="text" size="20" value=""/> |
Daniel Veillard | 4a603e4 | 2003-01-11 14:18:53 +0000 | [diff] [blame] | 316 | <input name="submit" type="submit" value="Search ..."/> |
| 317 | </form> |
Daniel Veillard | 8acca11 | 2002-01-21 09:52:27 +0000 | [diff] [blame] | 318 | <ul><!-- style="margin-left: -1em" --> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 319 | <li><a href="index.html">Home</a></li> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 320 | <xsl:for-each select="/html/body/h2"> |
| 321 | <xsl:variable name="filename"> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 322 | <xsl:call-template name="tocfilename"> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 323 | <xsl:with-param name="name" select="concat('#', string(a[1]/@name))"/> |
| 324 | </xsl:call-template> |
| 325 | </xsl:variable> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 326 | <xsl:if test="$filename != ''"> |
| 327 | <li> |
| 328 | <xsl:element name="a"> |
| 329 | <xsl:attribute name="href"> |
| 330 | <xsl:value-of select="$filename"/> |
| 331 | </xsl:attribute> |
Daniel Veillard | 66f68e7 | 2003-08-18 16:39:51 +0000 | [diff] [blame] | 332 | <xsl:if test="$filename = 'docs.html'"> |
| 333 | <xsl:attribute name="style">font-weight:bold</xsl:attribute> |
| 334 | </xsl:if> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 335 | <xsl:value-of select="."/> |
| 336 | </xsl:element> |
| 337 | </li> |
| 338 | </xsl:if> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 339 | </xsl:for-each> |
Daniel Veillard | a59853a | 2003-11-12 22:50:47 +0000 | [diff] [blame^] | 340 | <li><a href="examples/index.html" style="font-weight:bold">Code Examples</a></li> |
Daniel Veillard | 7b4b2f9 | 2003-01-06 13:11:20 +0000 | [diff] [blame] | 341 | <li><a href="guidelines.html">XML Guidelines</a></li> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 342 | </ul> |
| 343 | </xsl:variable> |
| 344 | <xsl:variable name="develtoc"> |
| 345 | <form action="search.php" |
| 346 | enctype="application/x-www-form-urlencoded" method="get"> |
| 347 | <input name="query" type="text" size="20" value=""/> |
| 348 | <input name="submit" type="submit" value="Search ..."/> |
| 349 | </form> |
| 350 | <ul><!-- style="margin-left: -1em" --> |
Daniel Veillard | 66f68e7 | 2003-08-18 16:39:51 +0000 | [diff] [blame] | 351 | <li><a href="index.html" style="font-weight:bold">Main Menu</a></li> |
Daniel Veillard | a59853a | 2003-11-12 22:50:47 +0000 | [diff] [blame^] | 352 | <li><a href="examples/index.html" style="font-weight:bold">Code Examples</a></li> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 353 | <li><a href="guidelines.html">XML Guidelines</a></li> |
| 354 | <li><a href="tutorial/index.html">Tutorial</a></li> |
| 355 | <li><a href="xmlreader.html">The Reader Interface</a></li> |
| 356 | <xsl:for-each select="/html/body/h2"> |
| 357 | <xsl:variable name="filename"> |
| 358 | <xsl:call-template name="docfilename"> |
| 359 | <xsl:with-param name="name" select="concat('#', string(a[1]/@name))"/> |
| 360 | </xsl:call-template> |
| 361 | </xsl:variable> |
| 362 | <xsl:if test="$filename != ''"> |
| 363 | <li> |
| 364 | <xsl:element name="a"> |
| 365 | <xsl:attribute name="href"> |
| 366 | <xsl:value-of select="$filename"/> |
| 367 | </xsl:attribute> |
| 368 | <xsl:value-of select="."/> |
| 369 | </xsl:element> |
| 370 | </li> |
| 371 | </xsl:if> |
| 372 | </xsl:for-each> |
Daniel Veillard | 594cf0b | 2001-10-25 08:09:12 +0000 | [diff] [blame] | 373 | <li><a href="xml.html">flat page</a>, <a href="site.xsl">stylesheet</a></li> |
| 374 | </ul> |
| 375 | </xsl:variable> |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 376 | <xsl:variable name="api"> |
| 377 | <ul><!-- style="margin-left: -1em" --> |
Daniel Veillard | f859256 | 2002-01-23 17:58:17 +0000 | [diff] [blame] | 378 | <li><a href="APIchunk0.html">Alphabetic</a></li> |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 379 | <li><a href="APIconstructors.html">Constructors</a></li> |
| 380 | <li><a href="APIfunctions.html">Functions/Types</a></li> |
| 381 | <li><a href="APIfiles.html">Modules</a></li> |
| 382 | <li><a href="APIsymbols.html">Symbols</a></li> |
| 383 | </ul> |
| 384 | </xsl:variable> |
Daniel Veillard | 594cf0b | 2001-10-25 08:09:12 +0000 | [diff] [blame] | 385 | <xsl:variable name="related"> |
Daniel Veillard | 8acca11 | 2002-01-21 09:52:27 +0000 | [diff] [blame] | 386 | <ul><!-- style="margin-left: -1em" --> |
Daniel Veillard | 594cf0b | 2001-10-25 08:09:12 +0000 | [diff] [blame] | 387 | <li><a href="http://mail.gnome.org/archives/xml/">Mail archive</a></li> |
| 388 | <li><a href="http://xmlsoft.org/XSLT/">XSLT libxslt</a></li> |
Daniel Veillard | 4a85920 | 2002-01-08 11:49:22 +0000 | [diff] [blame] | 389 | <li><a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a></li> |
Daniel Veillard | 2d347fa | 2002-03-17 10:34:11 +0000 | [diff] [blame] | 390 | <li><a href="http://www.aleksey.com/xmlsec/">XML-DSig xmlsec</a></li> |
Daniel Veillard | 594cf0b | 2001-10-25 08:09:12 +0000 | [diff] [blame] | 391 | <li><a href="ftp://xmlsoft.org/">FTP</a></li> |
Daniel Veillard | c84f8b5 | 2002-12-19 22:12:47 +0000 | [diff] [blame] | 392 | <li><a href="http://www.zlatkovic.com/projects/libxml/">Windows binaries</a></li> |
Daniel Veillard | db9dfd9 | 2001-11-26 17:25:02 +0000 | [diff] [blame] | 393 | <li><a href="http://garypennington.net/libxml2/">Solaris binaries</a></li> |
Daniel Veillard | cb7543b | 2002-09-09 10:54:06 +0000 | [diff] [blame] | 394 | <li><a href="http://www.zveno.com/open_source/libxml2xslt.html">MacOsX binaries</a></li> |
Daniel Veillard | e6d8e20 | 2002-05-02 06:11:10 +0000 | [diff] [blame] | 395 | <li><a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a></li> |
Daniel Veillard | ccf996f | 2003-08-14 10:48:38 +0000 | [diff] [blame] | 396 | <li><a href="http://bugzilla.gnome.org/buglist.cgi?product=libxml2">Bug Tracker</a></li> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 397 | </ul> |
| 398 | </xsl:variable> |
| 399 | <xsl:template name="toc"> |
| 400 | <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"> |
| 401 | <tr> |
| 402 | <td> |
| 403 | <table width="100%" border="0" cellspacing="1" cellpadding="3"> |
| 404 | <tr> |
| 405 | <td colspan="1" bgcolor="#eecfa1" align="center"> |
| 406 | <center> |
| 407 | <b>Main Menu</b> |
| 408 | </center> |
| 409 | </td> |
| 410 | </tr> |
| 411 | <tr> |
| 412 | <td bgcolor="#fffacd"> |
| 413 | <xsl:copy-of select="$toc"/> |
| 414 | </td> |
| 415 | </tr> |
| 416 | </table> |
Daniel Veillard | 594cf0b | 2001-10-25 08:09:12 +0000 | [diff] [blame] | 417 | <table width="100%" border="0" cellspacing="1" cellpadding="3"> |
| 418 | <tr> |
| 419 | <td colspan="1" bgcolor="#eecfa1" align="center"> |
| 420 | <center> |
| 421 | <b>Related links</b> |
| 422 | </center> |
| 423 | </td> |
| 424 | </tr> |
| 425 | <tr> |
| 426 | <td bgcolor="#fffacd"> |
| 427 | <xsl:copy-of select="$related"/> |
| 428 | </td> |
| 429 | </tr> |
| 430 | </table> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 431 | </td> |
| 432 | </tr> |
| 433 | </table> |
| 434 | </xsl:template> |
| 435 | <xsl:template name="develtoc"> |
| 436 | <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"> |
| 437 | <tr> |
| 438 | <td> |
| 439 | <table width="100%" border="0" cellspacing="1" cellpadding="3"> |
| 440 | <tr> |
| 441 | <td colspan="1" bgcolor="#eecfa1" align="center"> |
| 442 | <center> |
| 443 | <b>Developer Menu</b> |
| 444 | </center> |
| 445 | </td> |
| 446 | </tr> |
| 447 | <tr> |
| 448 | <td bgcolor="#fffacd"> |
| 449 | <xsl:copy-of select="$develtoc"/> |
| 450 | </td> |
| 451 | </tr> |
| 452 | </table> |
Daniel Veillard | 4a603e4 | 2003-01-11 14:18:53 +0000 | [diff] [blame] | 453 | <table width="100%" border="0" cellspacing="1" cellpadding="3"> |
| 454 | <tr> |
| 455 | <td colspan="1" bgcolor="#eecfa1" align="center"> |
| 456 | <center> |
| 457 | <b>API Indexes</b> |
| 458 | </center> |
| 459 | </td> |
| 460 | </tr> |
| 461 | <tr> |
| 462 | <td bgcolor="#fffacd"> |
| 463 | <xsl:copy-of select="$api"/> |
| 464 | </td> |
| 465 | </tr> |
| 466 | </table> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 467 | <table width="100%" border="0" cellspacing="1" cellpadding="3"> |
| 468 | <tr> |
| 469 | <td colspan="1" bgcolor="#eecfa1" align="center"> |
| 470 | <center> |
| 471 | <b>Related links</b> |
| 472 | </center> |
| 473 | </td> |
| 474 | </tr> |
| 475 | <tr> |
| 476 | <td bgcolor="#fffacd"> |
| 477 | <xsl:copy-of select="$related"/> |
| 478 | </td> |
| 479 | </tr> |
| 480 | </table> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 481 | </td> |
| 482 | </tr> |
| 483 | </table> |
| 484 | </xsl:template> |
| 485 | <xsl:template mode="head" match="title"> |
| 486 | <title> |
| 487 | <xsl:apply-templates/> |
| 488 | </title> |
| 489 | </xsl:template> |
| 490 | <xsl:template mode="head" match="meta"> |
| 491 | </xsl:template> |
| 492 | <!-- |
| 493 | - Write the styles in the head |
| 494 | --> |
| 495 | <xsl:template name="style"> |
Daniel Veillard | c332dab | 2002-03-29 14:08:27 +0000 | [diff] [blame] | 496 | <link rel="SHORTCUT ICON" href="/favicon.ico"/> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 497 | <style type="text/css"> |
Daniel Veillard | 373a475 | 2002-02-21 14:46:29 +0000 | [diff] [blame] | 498 | TD {font-family: Verdana,Arial,Helvetica} |
| 499 | BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em} |
| 500 | H1 {font-family: Verdana,Arial,Helvetica} |
| 501 | H2 {font-family: Verdana,Arial,Helvetica} |
| 502 | H3 {font-family: Verdana,Arial,Helvetica} |
Daniel Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 503 | A:link, A:visited, A:active { text-decoration: underline } |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 504 | </style> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 505 | </xsl:template> |
| 506 | <!-- |
| 507 | - Write the title box on top |
| 508 | --> |
| 509 | <xsl:template name="titlebox"> |
| 510 | <xsl:param name="title" select="'Main Page'"/> |
| 511 | <table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"> |
| 512 | <tr> |
Daniel Veillard | 6c57dca | 2003-09-03 10:10:51 +0000 | [diff] [blame] | 513 | <td width="120"> |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 514 | <a href="http://swpat.ffii.org/"><img src="{$href_base}epatents.png" alt="Action against software patents"/></a> |
Daniel Veillard | 6c57dca | 2003-09-03 10:10:51 +0000 | [diff] [blame] | 515 | </td> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 516 | <td width="180"> |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 517 | <a href="http://www.gnome.org/"><img src="{$href_base}gnome2.png" alt="Gnome2 Logo"/></a> |
| 518 | <a href="http://www.w3.org/Status"><img src="{$href_base}w3c.png" alt="W3C Logo"/></a> |
| 519 | <a href="http://www.redhat.com/"><img src="{$href_base}redhat.gif" alt="Red Hat Logo"/></a> |
Daniel Veillard | e166254 | 2002-08-28 11:50:59 +0000 | [diff] [blame] | 520 | <div align="left"> |
Daniel Veillard | b72876d | 2003-11-12 00:40:33 +0000 | [diff] [blame] | 521 | <a href="http://xmlsoft.org/"><img src="{$href_base}Libxml2-Logo-180x168.gif" alt="Made with Libxml2 Logo"/></a> |
Daniel Veillard | e166254 | 2002-08-28 11:50:59 +0000 | [diff] [blame] | 522 | </div> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 523 | </td> |
| 524 | <td> |
| 525 | <table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"> |
| 526 | <tr> |
| 527 | <td> |
| 528 | <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"> |
| 529 | <tr> |
| 530 | <td align="center"> |
| 531 | <xsl:element name="h1"> |
| 532 | <xsl:value-of select="$globaltitle"/> |
| 533 | </xsl:element> |
| 534 | <xsl:element name="h2"> |
| 535 | <xsl:value-of select="$title"/> |
| 536 | </xsl:element> |
| 537 | </td> |
| 538 | </tr> |
| 539 | </table> |
| 540 | </td> |
| 541 | </tr> |
| 542 | </table> |
| 543 | </td> |
| 544 | </tr> |
| 545 | </table> |
| 546 | </xsl:template> |
| 547 | <!-- |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 548 | - Handling of nodes in the body before the first H2, table of content |
| 549 | - Everything is just copied over, except href which may get rewritten |
| 550 | - and h1/h2/a at the top level |
| 551 | --> |
| 552 | <xsl:template priority="2" mode="subcontent" match="a"> |
| 553 | <xsl:variable name="filename"> |
| 554 | <xsl:call-template name="filename"> |
| 555 | <xsl:with-param name="name" select="string(@href)"/> |
| 556 | </xsl:call-template> |
| 557 | </xsl:variable> |
| 558 | <xsl:copy> |
| 559 | <xsl:attribute name="href"> |
| 560 | <xsl:value-of select="$filename"/> |
| 561 | </xsl:attribute> |
| 562 | <xsl:apply-templates mode="subcontent" select="node()"/> |
| 563 | </xsl:copy> |
| 564 | </xsl:template> |
| 565 | <xsl:template mode="subcontent" match="@*|node()"> |
| 566 | <xsl:copy> |
| 567 | <xsl:apply-templates mode="subcontent" select="@*|node()"/> |
| 568 | </xsl:copy> |
| 569 | </xsl:template> |
| 570 | <xsl:template mode="content" match="@*|node()"> |
| 571 | <xsl:if test="name() != 'h1' and name() != 'h2'"> |
| 572 | <xsl:copy> |
| 573 | <xsl:apply-templates mode="subcontent" select="@*|node()"/> |
| 574 | </xsl:copy> |
| 575 | </xsl:if> |
| 576 | </xsl:template> |
| 577 | <!-- |
| 578 | - Handling of nodes in the body after an H2 |
| 579 | - Open a new file and dump all the siblings up to the next H2 |
| 580 | --> |
| 581 | <xsl:template name="subfile"> |
| 582 | <xsl:param name="header" select="following-sibling::h2[1]"/> |
| 583 | <xsl:variable name="filename"> |
| 584 | <xsl:call-template name="filename"> |
| 585 | <xsl:with-param name="name" select="concat('#', string($header/a[1]/@name))"/> |
| 586 | </xsl:call-template> |
| 587 | </xsl:variable> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 588 | <xsl:variable name="tocfilename"> |
| 589 | <xsl:call-template name="tocfilename"> |
| 590 | <xsl:with-param name="name" select="concat('#', string($header/a[1]/@name))"/> |
| 591 | </xsl:call-template> |
| 592 | </xsl:variable> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 593 | <xsl:variable name="title"> |
| 594 | <xsl:value-of select="$header"/> |
| 595 | </xsl:variable> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 596 | <xsl:document href="{$filename}" method="xml" encoding="ISO-8859-1" |
| 597 | doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 598 | doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 599 | <html> |
| 600 | <head> |
| 601 | <xsl:call-template name="style"/> |
| 602 | <xsl:element name="title"> |
| 603 | <xsl:value-of select="$title"/> |
| 604 | </xsl:element> |
| 605 | </head> |
| 606 | <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000"> |
| 607 | <xsl:call-template name="titlebox"> |
| 608 | <xsl:with-param name="title" select="$title"/> |
| 609 | </xsl:call-template> |
| 610 | <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"> |
| 611 | <tr> |
| 612 | <td bgcolor="#8b7765"> |
| 613 | <table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 614 | <tr> |
| 615 | <td valign="top" width="200" bgcolor="#8b7765"> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 616 | <xsl:choose> |
| 617 | <xsl:when test="$filename = 'docs.html'"> |
| 618 | <xsl:call-template name="develtoc"/> |
| 619 | </xsl:when> |
| 620 | <xsl:when test="$tocfilename = ''"> |
| 621 | <xsl:call-template name="develtoc"/> |
| 622 | </xsl:when> |
| 623 | <xsl:otherwise> |
| 624 | <xsl:call-template name="toc"/> |
| 625 | </xsl:otherwise> |
| 626 | </xsl:choose> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 627 | </td> |
| 628 | <td valign="top" bgcolor="#8b7765"> |
| 629 | <table border="0" cellspacing="0" cellpadding="1" width="100%"> |
| 630 | <tr> |
| 631 | <td> |
| 632 | <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"> |
| 633 | <tr> |
| 634 | <td> |
| 635 | <table border="0" cellpadding="3" cellspacing="1" width="100%"> |
| 636 | <tr> |
| 637 | <td bgcolor="#fffacd"> |
| 638 | <xsl:apply-templates mode="subfile" select="$header/following-sibling::*[preceding-sibling::h2[1] = $header and name() != 'h2' ]"/> |
Daniel Veillard | 3f4c40f | 2002-02-13 09:19:28 +0000 | [diff] [blame] | 639 | <p><a href="bugs.html">Daniel Veillard</a></p> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 640 | </td> |
| 641 | </tr> |
| 642 | </table> |
| 643 | </td> |
| 644 | </tr> |
| 645 | </table> |
| 646 | </td> |
| 647 | </tr> |
| 648 | </table> |
| 649 | </td> |
| 650 | </tr> |
| 651 | </table> |
| 652 | </td> |
| 653 | </tr> |
| 654 | </table> |
| 655 | </body> |
| 656 | </html> |
| 657 | </xsl:document> |
| 658 | </xsl:template> |
| 659 | <xsl:template mode="subfile" match="@*|node()"> |
| 660 | <xsl:copy> |
| 661 | <xsl:apply-templates mode="content" select="@*|node()"/> |
| 662 | </xsl:copy> |
| 663 | </xsl:template> |
| 664 | <!-- |
| 665 | - Handling of the initial body and head HTML document |
| 666 | --> |
| 667 | <xsl:template match="body"> |
| 668 | <xsl:variable name="firsth2" select="./h2[1]"/> |
| 669 | <xsl:variable name="rest2" select="./h2[position()>1]"/> |
| 670 | <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000"> |
| 671 | <xsl:call-template name="titlebox"> |
| 672 | <xsl:with-param name="title" select="'libxml'"/> |
| 673 | </xsl:call-template> |
| 674 | <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"> |
| 675 | <tr> |
| 676 | <td bgcolor="#8b7765"> |
| 677 | <table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 678 | <tr> |
| 679 | <td valign="top" width="200" bgcolor="#8b7765"> |
| 680 | <xsl:call-template name="toc"/> |
| 681 | </td> |
| 682 | <td valign="top" bgcolor="#8b7765"> |
| 683 | <table border="0" cellspacing="0" cellpadding="1" width="100%"> |
| 684 | <tr> |
| 685 | <td> |
| 686 | <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"> |
| 687 | <tr> |
| 688 | <td> |
| 689 | <table border="0" cellpadding="3" cellspacing="1" width="100%"> |
| 690 | <tr> |
| 691 | <td bgcolor="#fffacd"> |
| 692 | <xsl:apply-templates mode="content" select="($firsth2/preceding-sibling::*)"/> |
| 693 | <xsl:for-each select="./h2"> |
| 694 | <xsl:call-template name="subfile"> |
| 695 | <xsl:with-param name="header" select="."/> |
| 696 | </xsl:call-template> |
| 697 | </xsl:for-each> |
Daniel Veillard | 3f4c40f | 2002-02-13 09:19:28 +0000 | [diff] [blame] | 698 | <p><a href="bugs.html">Daniel Veillard</a></p> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 699 | </td> |
| 700 | </tr> |
| 701 | </table> |
| 702 | </td> |
| 703 | </tr> |
| 704 | </table> |
| 705 | </td> |
| 706 | </tr> |
| 707 | </table> |
| 708 | </td> |
| 709 | </tr> |
| 710 | </table> |
| 711 | </td> |
| 712 | </tr> |
| 713 | </table> |
| 714 | </body> |
| 715 | </xsl:template> |
| 716 | <xsl:template match="head"> |
| 717 | <head> |
| 718 | <xsl:call-template name="style"/> |
| 719 | <xsl:apply-templates mode="head"/> |
| 720 | </head> |
| 721 | </xsl:template> |
| 722 | <xsl:template match="html"> |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 723 | <xsl:message>Generating the Web pages</xsl:message> |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 724 | <html> |
| 725 | <xsl:apply-templates/> |
| 726 | </html> |
| 727 | </xsl:template> |
| 728 | </xsl:stylesheet> |