Changeset 9db1668 for BOOK/stylesheets/clfs-profile.xsl
- Timestamp:
- Apr 23, 2011, 4:53:20 PM (14 years ago)
- Children:
- 4f597816
- Parents:
- d10f81a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
rd10f81a r9db1668 169 169 <xsl:element name="title" /> 170 170 <xsl:text> 171 171 172 </xsl:text> 172 173 <xsl:element name="para"> 173 <xsl:copy-of select="c:description/@*|c:description/node()" /> 174 <xsl:choose> 175 <xsl:when test="$bits = '32'"> 176 <xsl:apply-templates select="c:description/@*|c:description/node()" mode="filter-bits-32" /> 177 </xsl:when> 178 <xsl:when test="$bits = 'n32'"> 179 <xsl:apply-templates select="c:description/@*|c:description/node()" mode="filter-bits-n32" /> 180 </xsl:when> 181 <xsl:when test="$bits = '64'"> 182 <xsl:apply-templates select="c:description/@*|c:description/node()" mode="filter-bits-64" /> 183 </xsl:when> 184 </xsl:choose> 174 185 </xsl:element> 175 186 <xsl:text> 187 176 188 </xsl:text> 177 189 </xsl:element> … … 235 247 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 236 248 <xsl:element name="para"> 237 <xsl:apply-templates select=" @*|node()" mode="filter-bits-32" />249 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 238 250 </xsl:element> 239 251 </xsl:if> … … 286 298 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 287 299 <xsl:element name="literal"> 288 <xsl:apply-templates select="@*|node()" mode="filter-bits-32" /> 300 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 301 </xsl:element> 302 </xsl:if> 303 </xsl:if> 304 </xsl:if> 305 </xsl:template> 306 307 <xsl:template match="c:replaceable" mode="filter-bits-32"> 308 <xsl:variable name="ismultilib"> 309 <xsl:choose> 310 <xsl:when test="contains($clfs.multilib, ',')"> 311 <xsl:text>true</xsl:text> 312 </xsl:when> 313 <xsl:otherwise> 314 <xsl:text>false</xsl:text> 315 </xsl:otherwise> 316 </xsl:choose> 317 </xsl:variable> 318 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 319 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 320 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 321 <xsl:element name="replaceable"> 322 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 323 </xsl:element> 324 </xsl:if> 325 </xsl:if> 326 </xsl:if> 327 </xsl:template> 328 329 <xsl:template match="c:application" mode="filter-bits-32"> 330 <xsl:variable name="ismultilib"> 331 <xsl:choose> 332 <xsl:when test="contains($clfs.multilib, ',')"> 333 <xsl:text>true</xsl:text> 334 </xsl:when> 335 <xsl:otherwise> 336 <xsl:text>false</xsl:text> 337 </xsl:otherwise> 338 </xsl:choose> 339 </xsl:variable> 340 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 341 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 342 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 343 <xsl:element name="application"> 344 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 345 </xsl:element> 346 </xsl:if> 347 </xsl:if> 348 </xsl:if> 349 </xsl:template> 350 351 <xsl:template match="c:dirname" mode="filter-bits-32"> 352 <xsl:variable name="ismultilib"> 353 <xsl:choose> 354 <xsl:when test="contains($clfs.multilib, ',')"> 355 <xsl:text>true</xsl:text> 356 </xsl:when> 357 <xsl:otherwise> 358 <xsl:text>false</xsl:text> 359 </xsl:otherwise> 360 </xsl:choose> 361 </xsl:variable> 362 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 363 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 364 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 365 <xsl:element name="filename"> 366 <xsl:attribute name="class"> 367 <xsl:text>directory</xsl:text> 368 </xsl:attribute> 369 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 370 </xsl:element> 371 </xsl:if> 372 </xsl:if> 373 </xsl:if> 374 </xsl:template> 375 376 <xsl:template match="c:filename" mode="filter-bits-32"> 377 <xsl:variable name="ismultilib"> 378 <xsl:choose> 379 <xsl:when test="contains($clfs.multilib, ',')"> 380 <xsl:text>true</xsl:text> 381 </xsl:when> 382 <xsl:otherwise> 383 <xsl:text>false</xsl:text> 384 </xsl:otherwise> 385 </xsl:choose> 386 </xsl:variable> 387 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 388 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 389 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 390 <xsl:element name="filename"> 391 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 392 </xsl:element> 393 </xsl:if> 394 </xsl:if> 395 </xsl:if> 396 </xsl:template> 397 398 <xsl:template match="c:command" mode="filter-bits-32"> 399 <xsl:variable name="ismultilib"> 400 <xsl:choose> 401 <xsl:when test="contains($clfs.multilib, ',')"> 402 <xsl:text>true</xsl:text> 403 </xsl:when> 404 <xsl:otherwise> 405 <xsl:text>false</xsl:text> 406 </xsl:otherwise> 407 </xsl:choose> 408 </xsl:variable> 409 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 410 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 411 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 412 <xsl:element name="command"> 413 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 289 414 </xsl:element> 290 415 </xsl:if> … … 314 439 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 315 440 <xsl:element name="para"> 316 <xsl:apply-templates select=" @*|node()" mode="filter-bits-n32" />441 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 317 442 </xsl:element> 318 443 </xsl:if> … … 365 490 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 366 491 <xsl:element name="literal"> 367 <xsl:apply-templates select="@*|node()" mode="filter-bits-n32" /> 492 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 493 </xsl:element> 494 </xsl:if> 495 </xsl:if> 496 </xsl:if> 497 </xsl:template> 498 499 <xsl:template match="c:replaceable" mode="filter-bits-n32"> 500 <xsl:variable name="ismultilib"> 501 <xsl:choose> 502 <xsl:when test="contains($clfs.multilib, ',')"> 503 <xsl:text>true</xsl:text> 504 </xsl:when> 505 <xsl:otherwise> 506 <xsl:text>false</xsl:text> 507 </xsl:otherwise> 508 </xsl:choose> 509 </xsl:variable> 510 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 511 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 512 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 513 <xsl:element name="replaceable"> 514 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 515 </xsl:element> 516 </xsl:if> 517 </xsl:if> 518 </xsl:if> 519 </xsl:template> 520 521 <xsl:template match="c:application" mode="filter-bits-n32"> 522 <xsl:variable name="ismultilib"> 523 <xsl:choose> 524 <xsl:when test="contains($clfs.multilib, ',')"> 525 <xsl:text>true</xsl:text> 526 </xsl:when> 527 <xsl:otherwise> 528 <xsl:text>false</xsl:text> 529 </xsl:otherwise> 530 </xsl:choose> 531 </xsl:variable> 532 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 533 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 534 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 535 <xsl:element name="application"> 536 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 537 </xsl:element> 538 </xsl:if> 539 </xsl:if> 540 </xsl:if> 541 </xsl:template> 542 543 <xsl:template match="c:dirname" mode="filter-bits-n32"> 544 <xsl:variable name="ismultilib"> 545 <xsl:choose> 546 <xsl:when test="contains($clfs.multilib, ',')"> 547 <xsl:text>true</xsl:text> 548 </xsl:when> 549 <xsl:otherwise> 550 <xsl:text>false</xsl:text> 551 </xsl:otherwise> 552 </xsl:choose> 553 </xsl:variable> 554 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 555 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 556 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 557 <xsl:element name="filename"> 558 <xsl:attribute name="class"> 559 <xsl:text>directory</xsl:text> 560 </xsl:attribute> 561 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 562 </xsl:element> 563 </xsl:if> 564 </xsl:if> 565 </xsl:if> 566 </xsl:template> 567 568 <xsl:template match="c:filename" mode="filter-bits-n32"> 569 <xsl:variable name="ismultilib"> 570 <xsl:choose> 571 <xsl:when test="contains($clfs.multilib, ',')"> 572 <xsl:text>true</xsl:text> 573 </xsl:when> 574 <xsl:otherwise> 575 <xsl:text>false</xsl:text> 576 </xsl:otherwise> 577 </xsl:choose> 578 </xsl:variable> 579 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 580 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 581 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 582 <xsl:element name="filename"> 583 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 584 </xsl:element> 585 </xsl:if> 586 </xsl:if> 587 </xsl:if> 588 </xsl:template> 589 590 <xsl:template match="c:command" mode="filter-bits-n32"> 591 <xsl:variable name="ismultilib"> 592 <xsl:choose> 593 <xsl:when test="contains($clfs.multilib, ',')"> 594 <xsl:text>true</xsl:text> 595 </xsl:when> 596 <xsl:otherwise> 597 <xsl:text>false</xsl:text> 598 </xsl:otherwise> 599 </xsl:choose> 600 </xsl:variable> 601 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 602 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 603 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 604 <xsl:element name="command"> 605 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 368 606 </xsl:element> 369 607 </xsl:if> … … 393 631 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 394 632 <xsl:element name="para"> 395 <xsl:apply-templates select=" @*|node()" mode="filter-bits-64" />633 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 396 634 </xsl:element> 397 635 </xsl:if> … … 444 682 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 445 683 <xsl:element name="literal"> 446 <xsl:apply-templates select="@*|node()" mode="filter-bits-64" /> 684 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 685 </xsl:element> 686 </xsl:if> 687 </xsl:if> 688 </xsl:if> 689 </xsl:template> 690 691 <xsl:template match="c:replaceable" mode="filter-bits-64"> 692 <xsl:variable name="ismultilib"> 693 <xsl:choose> 694 <xsl:when test="contains($clfs.multilib, ',')"> 695 <xsl:text>true</xsl:text> 696 </xsl:when> 697 <xsl:otherwise> 698 <xsl:text>false</xsl:text> 699 </xsl:otherwise> 700 </xsl:choose> 701 </xsl:variable> 702 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 703 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 704 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 705 <xsl:element name="replaceable"> 706 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 707 </xsl:element> 708 </xsl:if> 709 </xsl:if> 710 </xsl:if> 711 </xsl:template> 712 713 <xsl:template match="c:application" mode="filter-bits-64"> 714 <xsl:variable name="ismultilib"> 715 <xsl:choose> 716 <xsl:when test="contains($clfs.multilib, ',')"> 717 <xsl:text>true</xsl:text> 718 </xsl:when> 719 <xsl:otherwise> 720 <xsl:text>false</xsl:text> 721 </xsl:otherwise> 722 </xsl:choose> 723 </xsl:variable> 724 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 725 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 726 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 727 <xsl:element name="application"> 728 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 729 </xsl:element> 730 </xsl:if> 731 </xsl:if> 732 </xsl:if> 733 </xsl:template> 734 735 <xsl:template match="c:dirname" mode="filter-bits-64"> 736 <xsl:variable name="ismultilib"> 737 <xsl:choose> 738 <xsl:when test="contains($clfs.multilib, ',')"> 739 <xsl:text>true</xsl:text> 740 </xsl:when> 741 <xsl:otherwise> 742 <xsl:text>false</xsl:text> 743 </xsl:otherwise> 744 </xsl:choose> 745 </xsl:variable> 746 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 747 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 748 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 749 <xsl:element name="filename"> 750 <xsl:attribute name="class"> 751 <xsl:text>directory</xsl:text> 752 </xsl:attribute> 753 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 754 </xsl:element> 755 </xsl:if> 756 </xsl:if> 757 </xsl:if> 758 </xsl:template> 759 760 <xsl:template match="c:filename" mode="filter-bits-64"> 761 <xsl:variable name="ismultilib"> 762 <xsl:choose> 763 <xsl:when test="contains($clfs.multilib, ',')"> 764 <xsl:text>true</xsl:text> 765 </xsl:when> 766 <xsl:otherwise> 767 <xsl:text>false</xsl:text> 768 </xsl:otherwise> 769 </xsl:choose> 770 </xsl:variable> 771 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 772 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 773 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 774 <xsl:element name="filename"> 775 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 776 </xsl:element> 777 </xsl:if> 778 </xsl:if> 779 </xsl:if> 780 </xsl:template> 781 782 <xsl:template match="c:command" mode="filter-bits-64"> 783 <xsl:variable name="ismultilib"> 784 <xsl:choose> 785 <xsl:when test="contains($clfs.multilib, ',')"> 786 <xsl:text>true</xsl:text> 787 </xsl:when> 788 <xsl:otherwise> 789 <xsl:text>false</xsl:text> 790 </xsl:otherwise> 791 </xsl:choose> 792 </xsl:variable> 793 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 794 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 795 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 796 <xsl:element name="command"> 797 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 447 798 </xsl:element> 448 799 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.