1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
|
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE xsl:stylesheet [
<!ENTITY lf SYSTEM "../xsl/util/lf.xml">
<!ENTITY tab SYSTEM "../xsl/util/tab.xml">
<!ENTITY ul.start SYSTEM "../xsl/util/ul-start.xml">
<!ENTITY ul.end SYSTEM "../xsl/util/ul-end.xml" >
<!ENTITY li.start SYSTEM "../xsl/util/li-start.xml">
<!ENTITY li.end SYSTEM "../xsl/util/li-end.xml" >
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="">
<!-- -->
<!-- WARNING! Do not touch anything, especially the whitespaces [1] -->
<!-- unless you know, what you're doing. The HTML help compiler parses -->
<!-- the TOC file not really as html instead of line by line and takes -->
<!-- care of whitespace indentations etc. -->
<!-- -->
<!-- [1] Covered by the &lf; and &tab; entities. -->
<!-- -->
<!-- You have been warned. -->
<!-- -->
<!-- create nodeset for referencing later -->
<xsl:variable name="not-exists" select="document('')/xsl:stylesheet/xsl:template
[@name='data']/not-exists/file" />
<xsl:template name="data">
<!-- documents not converted (yet?). -->
<not-exists>
<!-- example: <file>developer/API.xml</file> -->
</not-exists>
</xsl:template>
<!-- Constants used for case translation -->
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<!-- document() works relative to the xsl (!) file -->
<xsl:variable name="basedir" select="'../../'"/>
<!-- icons -->
<xsl:variable name="icon.document" select="'11'" />
<xsl:variable name="icon.document.not-translated" select="'12'" />
<xsl:variable name="icon.section" select="'35'" />
<xsl:variable name="icon.directive" select="'41'" />
<xsl:variable name="icon.commondirective" select="'19'" />
<!-- this should not happen. this icon is only displayed within the
toc view of the help workshop (it's a question mark): -->
<xsl:variable name="icon.no-anchor" select="'9'" />
<!-- for module-translatename -->
<xsl:include href="../xsl/util/modtrans.xsl"/>
<!-- ==================================================================== -->
<!-- <sitemap> -->
<!-- Create CHM contents file (toc) from sitemap -->
<!-- The file is an html style text file (see warning on top) -->
<!-- ==================================================================== -->
<xsl:template match="/sitemap">
<!-- html head -->
<xsl:text><html><head></xsl:text>
<xsl:text><title>Apache HTTP Server Documentation</title></xsl:text>
<xsl:text></head></xsl:text>&lf;
<xsl:text><body></xsl:text>&lf;
<!-- toc properties first -->
<xsl:text><object type="text/site properties"></xsl:text>&lf;&tab;
<!-- XXX: that magic value is still obfuscated. Research needed ... -->
<xsl:text><param name="Window Styles" value="0x800027"></xsl:text>&lf;&tab;
<xsl:text><param name="Font" value="</xsl:text>
<xsl:value-of select="$toc-font" />
<xsl:text>"></xsl:text>&lf;
<xsl:text></object></xsl:text>&lf;
&ul.start; &lf;
<!-- index page on top. -->
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name"
select="normalize-space($message[@id='apachehttpserver'])" />
<xsl:with-param name="href" select="'index.html'" />
<xsl:with-param name="indent" select="'		'" />
</xsl:call-template>
&li.end; &lf;
<!-- iterate over the categories in document order -->
<xsl:for-each select="category">
&li.start;
<xsl:call-template name="folder">
<xsl:with-param name="name" select="normalize-space(title)" />
</xsl:call-template>&lf;&tab;
&ul.start; &lf;&tab;
<xsl:apply-templates select="page" />
<xsl:if test="@id = 'modules'">
<xsl:apply-templates select="document($allmodules)/modulefilelist" />
</xsl:if>
&ul.end; &lf;
&li.end; &lf;&tab;
</xsl:for-each>&lf;
&ul.end; &lf;
<xsl:text></body></html></xsl:text>&lf;
</xsl:template>
<!-- /sitemap -->
<!-- ==================================================================== -->
<!-- category/page -->
<!-- ==================================================================== -->
<xsl:template match="category/page">
&li.start;
<!-- document entry, if not href attribute, assume it means "sitemap" -->
<xsl:call-template name="object">
<xsl:with-param name="name">
<xsl:choose>
<xsl:when test="@href">
<xsl:value-of select="normalize-space(.)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($message[@id='sitemap'])" />
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="href">
<xsl:choose>
<xsl:when test="not(@href)">
<xsl:text>sitemap.html</xsl:text>
</xsl:when>
<xsl:when test="contains(@href, '#')">
<xsl:value-of select="substring-before(@href, '#')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@href"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="indent" select="'		'" />
</xsl:call-template>
<!-- now try to index the sections of the document -->
<xsl:apply-templates select="self::page" mode="index" />
&li.end; &lf;&tab;
</xsl:template>
<!-- /category/page -->
<!-- ==================================================================== -->
<!-- category/page, mode="index" -->
<!-- display all section headings of one page -->
<!-- ==================================================================== -->
<xsl:template match="category/page" mode="index">
<xsl:variable name="href.offline">
<xsl:choose>
<xsl:when test="string-length(@href) = 0">
<xsl:text>sitemap.html</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="helper.href.offline">
<xsl:with-param name="href" select="@href" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="xml"
select="concat(substring-before($href.offline, '.html'), '.xml')" />
<xsl:if test="not($xml = $not-exists)">
<xsl:variable name="xmlfile">
<xsl:variable name="metafile"
select="document(document(concat($basedir, $xml))/*/@metafile)
/metafile" />
<xsl:choose>
<xsl:when test="$metafile/variants/variant[.=$doclang] and not
($metafile/variants/variant[.=$doclang]
/@htmlonly = 'yes')">
<xsl:value-of select="concat($basedir,
substring-before($xml, '.xml'), $xml-ext)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($basedir, $xml)" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="current" select="document($xmlfile)" />
<xsl:if test="count($current/*/*[local-name()='section' or
local-name()='category']) > 1">
&lf;&tab;&tab;&tab;
&ul.start; &lf;&tab;&tab;&tab;
<xsl:for-each select="$current/*/*[local-name()='section' or
local-name()='category']">
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name" select="normalize-space(title)" />
<xsl:with-param name="href">
<xsl:if test="@id">
<xsl:value-of
select="concat(substring-before($xml, '.xml'),
'.html#', @id)" />
</xsl:if>
</xsl:with-param>
<xsl:with-param name="indent" select="'				'" />
</xsl:call-template>
&li.end; &lf;&tab;&tab;
</xsl:for-each>
&ul.end; &lf;&tab;
</xsl:if> <!-- count() > 1 -->
</xsl:if> <!-- xml exists -->
</xsl:template>
<!-- /category/page, "index" -->
<!-- ==================================================================== -->
<!-- category/modulefilelist -->
<!-- process all listed module files -->
<!-- ==================================================================== -->
<xsl:template match="modulefilelist">
<!-- create a module name translation list for sorting -->
<xsl:variable name="translist">
<xsl:text>-</xsl:text>
<xsl:for-each select="modulefile">
<xsl:variable name="current"
select="document(concat($basedir,'mod/',.))/modulesynopsis" />
<xsl:text> </xsl:text>
<xsl:value-of select="$current/name"/>
<xsl:text> </xsl:text>
<xsl:call-template name="module-translatename">
<xsl:with-param name="name" select="$current/name"/>
</xsl:call-template>
<xsl:text> -</xsl:text>
</xsl:for-each>
</xsl:variable>
<!-- put core and mpm_common on top -->
<xsl:call-template name="toc-entry.mpm">
<xsl:with-param name="current"
select="document(concat($basedir, 'mod/', modulefile[starts-with(.,
'core.xml')]/text()))/modulesynopsis" />
<xsl:with-param name="name" select="'core'" />
</xsl:call-template>
<xsl:call-template name="toc-entry.mpm">
<xsl:with-param name="current"
select="document(concat($basedir, 'mod/', modulefile[starts-with(.,
'mpm_common.xml')]/text()))/modulesynopsis" />
<xsl:with-param name="name" select="'common'" />
</xsl:call-template>
<!-- remaining MPMs -->
<xsl:for-each select="modulefile">
<xsl:sort select="substring-before(substring-after($translist, concat('- ',
document(concat($basedir, 'mod/', .))/modulesynopsis/name, ' ')), ' -')" />
<xsl:variable name="current"
select="document(concat($basedir, 'mod/', .))/modulesynopsis" />
<xsl:if test="$current/status='MPM' and not($current/name='mpm_common')">
<xsl:call-template name="toc-entry.mpm">
<xsl:with-param name="current" select="$current" />
<xsl:with-param name="name" select="substring-before(
substring-after($translist, concat('- ', $current/name, ' ')),
' -')" />
</xsl:call-template>
</xsl:if>
</xsl:for-each>
<!-- normal modules -->
<xsl:for-each select="modulefile">
<xsl:sort select="substring-before(substring-after($translist, concat('- ',
document(concat($basedir, 'mod/', .))/modulesynopsis/name, ' ')), ' -')" />
<xsl:variable name="current"
select="document(concat($basedir, 'mod/', .))/modulesynopsis" />
<xsl:if test="not($current/status='MPM') and not($current/status='Core')">
<xsl:call-template name="toc-entry.module">
<xsl:with-param name="current" select="$current"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- /category/modulefilelist -->
<!-- ==================================================================== -->
<!-- toc-entry.mpm -->
<!-- create entry (and initiate subsection entries) of an mpm -->
<!-- ==================================================================== -->
<xsl:template name="toc-entry.mpm">
<xsl:param name="current" />
<xsl:param name="name" />
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name">
<xsl:choose>
<xsl:when test="$name='core'">
<xsl:value-of select="normalize-space($message[@id='apachecore'])" />
</xsl:when>
<xsl:when test="$name='common'">
<xsl:value-of select="normalize-space($message[@id='apachempmcommon'])" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($message[@id='apachempm'])" />
<xsl:text> </xsl:text>
<xsl:value-of select="$name" />
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="href"
select="concat('mod/', $current/name, '.html')" />
<xsl:with-param name="indent" select="'			'" />
</xsl:call-template>
<xsl:call-template name="sections-and-directives">
<xsl:with-param name="current" select="$current" />
</xsl:call-template>
&li.end; &lf;&tab;
</xsl:template>
<!-- /toc-entry.mpm -->
<!-- ==================================================================== -->
<!-- toc-entry.module -->
<!-- create entry (and initiate subsection entries) of a module -->
<!-- ==================================================================== -->
<xsl:template name="toc-entry.module">
<xsl:param name="current"/>
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name">
<xsl:value-of select="normalize-space($message[@id='apachemodule'])" />
<xsl:text> </xsl:text>
<xsl:value-of select="$current/name" />
</xsl:with-param>
<xsl:with-param name="href"
select="concat('mod/', $current/name, '.html')" />
<xsl:with-param name="indent" select="'			'" />
</xsl:call-template>
<xsl:call-template name="sections-and-directives">
<xsl:with-param name="current" select="$current" />
</xsl:call-template>
&li.end; &lf;&tab;
</xsl:template>
<!-- /toc-entry.module -->
<!-- ==================================================================== -->
<!-- sections-and-directives -->
<!-- process sections and directives of a module file -->
<!-- ==================================================================== -->
<xsl:template name="sections-and-directives">
<xsl:param name="current" />
<xsl:if test="count($current/section) > 0 or
count($current/directivesynopsis) > 0">
&lf;&tab;&tab;
&ul.start; &lf;&tab;&tab;
<!-- sections -->
<xsl:for-each select="$current/section">
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name" select="normalize-space(title)" />
<xsl:with-param name="href">
<xsl:if test="@id">
<xsl:value-of
select="concat('mod/', $current/name, '.html#', @id)" />
</xsl:if>
</xsl:with-param>
<xsl:with-param name="indent" select="'				'" />
</xsl:call-template>
&li.end; &lf;&tab;&tab;
</xsl:for-each>
<!-- directives within the current document -->
<xsl:for-each select="$current/directivesynopsis[not(@location)]">
<xsl:sort select="name" />
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name">
<xsl:if test="@type='section'"><</xsl:if>
<xsl:value-of select="name"/>
<xsl:if test="@type='section'">></xsl:if>
<xsl:choose>
<xsl:when test="$message[@id='directive']
/@replace-space-with">
<xsl:value-of select="$message[@id='directive']
/@replace-space-with" />
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="normalize-space($message[@id='directive'])" />
</xsl:with-param>
<xsl:with-param name="href"
select="concat('mod/', $current/name, '.html#',
translate(name, $uppercase, $lowercase))" />
<xsl:with-param name="indent" select="'				'" />
<xsl:with-param name="icon" select="$icon.directive" />
</xsl:call-template>
&li.end; &lf;&tab;&tab;
</xsl:for-each>
<!-- directives described elsewhere -->
<xsl:for-each select="$current/directivesynopsis[@location]">
<xsl:sort select="name" />
&li.start;
<xsl:call-template name="object">
<xsl:with-param name="name">
<xsl:if test="@type='section'"><</xsl:if>
<xsl:value-of select="name"/>
<xsl:if test="@type='section'">></xsl:if>
<xsl:choose>
<xsl:when test="$message[@id='directive']
/@replace-space-with">
<xsl:value-of select="$message[@id='directive']
/@replace-space-with" />
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="normalize-space($message[@id='directive'])" />
</xsl:with-param>
<xsl:with-param name="href"
select="concat('mod/', @location, '.html#',
translate(name, $uppercase, $lowercase))" />
<xsl:with-param name="indent" select="'				'" />
<xsl:with-param name="icon" select="$icon.commondirective" />
</xsl:call-template>
&li.end; &lf;&tab;&tab;
</xsl:for-each>
&ul.end; &lf;&tab;
</xsl:if> <!-- sections or directives present -->
</xsl:template>
<!-- /sections-and-directives -->
<!-- ==================================================================== -->
<!-- object -->
<!-- display an <object> and do some magic to select the right content -->
<!-- ==================================================================== -->
<xsl:template name="object">
<xsl:param name="name" select="'? unknown ?'" />
<xsl:param name="href" />
<xsl:param name="icon" select="$icon.section" />
<xsl:param name="indent" />
<xsl:variable name="href.offline">
<xsl:call-template name="helper.href.offline">
<xsl:with-param name="href" select="$href" />
</xsl:call-template>
</xsl:variable>
<!-- xml file is expected to have the same basename -->
<xsl:variable name="xml"
select="concat(substring-before($href.offline, '.html'), '.xml')" />
<xsl:text><object type="text/sitemap"></xsl:text>&lf;
<xsl:value-of select="$indent" />
<xsl:text><param name="Name" value="</xsl:text>
<xsl:call-template name="filter.attval">
<xsl:with-param name="text" select="$name" />
</xsl:call-template>
<xsl:text>"></xsl:text>&lf;
<xsl:value-of select="$indent" />
<xsl:if test="string-length($href.offline) > 0">
<xsl:text><param name="Local" value="</xsl:text>
<xsl:call-template name="filter.attval">
<xsl:with-param name="text" select="$href.offline" />
</xsl:call-template>
<xsl:text>"></xsl:text>&lf;
<xsl:value-of select="$indent" />
</xsl:if>
<xsl:text><param name="ImageNumber" value="</xsl:text>
<xsl:choose>
<xsl:when test="string-length($href.offline) > 0">
<xsl:choose>
<xsl:when test="contains($href, '#')">
<xsl:value-of select="$icon" />
</xsl:when>
<xsl:when test="$doclang='en' or
(not($xml = $not-exists) and
(document(document(concat($basedir, $xml))
/*/@metafile)
/metafile/variants/variant
[.=$doclang and not(@htmlonly='yes')]))">
<xsl:value-of select="$icon.document" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$icon.document.not-translated" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$icon.no-anchor" />
</xsl:otherwise>
</xsl:choose>
<xsl:text>"></xsl:text>&lf;
<xsl:value-of select="substring($indent, 2)" />
<xsl:text></object></xsl:text>
</xsl:template>
<!-- /object -->
<!-- ==================================================================== -->
<!-- folder -->
<!-- ==================================================================== -->
<xsl:template name="folder">
<xsl:param name="name" select="'? unknown ?'" />
<xsl:text><object type="text/sitemap"></xsl:text>&lf;&tab;&tab;
<xsl:text><param name="Name" value="</xsl:text>
<xsl:call-template name="filter.attval">
<xsl:with-param name="text" select="$name" />
</xsl:call-template>
<xsl:text>"></xsl:text>&lf;&tab;
<xsl:text></object></xsl:text>
</xsl:template>
<!-- /folder -->
<!-- ==================================================================== -->
<!-- helper.href.offline -->
<!-- change uri reference to work offline (/ -> /index.html) -->
<!-- ==================================================================== -->
<xsl:template name="helper.href.offline">
<xsl:param name="href" />
<xsl:choose>
<xsl:when test="string-length($href) = 0" />
<xsl:when test="contains($href, '#') and '/' = substring($href,
string-length(substring-before($href, '#')), 1)">
<xsl:value-of select="substring-before($href, '#')" />
<xsl:text>index.html#</xsl:text>
<xsl:value-of select="substring-after($href, '#')" />
</xsl:when>
<xsl:when test="substring($href, string-length($href), 1) = '/'">
<xsl:value-of select="$href" />
<xsl:text>index.html</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$href" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- /helper.href.offline -->
<!-- ==================================================================== -->
<!-- filter.attval -->
<!-- escape special characters for being valid within an attribute -->
<!-- ==================================================================== -->
<xsl:template name="filter.attval">
<xsl:param name="text" />
<xsl:choose>
<xsl:when test="contains($text, '&')">
<xsl:call-template name="filter.attval.special">
<xsl:with-param name="text" select="substring-before($text, '&')" />
</xsl:call-template>
<xsl:text>&amp;</xsl:text>
<xsl:call-template name="filter.attval">
<xsl:with-param name="text" select="substring-after($text, '&')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="filter.attval.special">
<xsl:with-param name="text" select="$text" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- /filter.attval -->
<!-- ==================================================================== -->
<!-- filter.attval.special -->
<!-- accompanying template of filter.attval -->
<!-- ==================================================================== -->
<xsl:template name="filter.attval.special">
<xsl:param name="text" />
<xsl:choose>
<xsl:when test="contains($text, '<')">
<xsl:value-of select="substring-before($text, '<')" />
<xsl:text>&lt;</xsl:text>
<xsl:call-template name="filter.attval.special">
<xsl:with-param name="text" select="substring-after($text, '<')" />
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($text, '>')">
<xsl:value-of select="substring-before($text, '>')" />
<xsl:text>&gt;</xsl:text>
<xsl:call-template name="filter.attval.special">
<xsl:with-param name="text" select="substring-after($text, '>')" />
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($text, '"')">
<xsl:value-of select="substring-before($text, '"')" />
<xsl:text>&quot;</xsl:text>
<xsl:call-template name="filter.attval.special">
<xsl:with-param name="text" select="substring-after($text, '"')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- /filter.attval.special -->
</xsl:stylesheet>
|