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