Changeset 9db1668
- Timestamp:
- Apr 23, 2011, 4:53:20 PM (14 years ago)
- Children:
- 4f597816
- Parents:
- d10f81a
- Location:
- BOOK
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/schema/clfs/0.1/rng/clfs.rnc
rd10f81a r9db1668 32 32 33 33 clfs.inline = 34 (clfs.inline.strong | 34 (clfs.inline.literal | 35 clfs.inline.replaceable | 36 clfs.inline.application | 35 37 clfs.inline.dirname | 36 38 clfs.inline.filename | 37 39 clfs.inline.command | 38 text) +40 text)* 39 41 40 clfs.inline.strong = 41 element c:strong { 42 clfs.inline.common.attrib = 43 clfs.attrib.arch, 44 clfs.attrib.bits, 45 clfs.attrib.multilib 46 47 clfs.inline.literal = 48 element c:literal { 49 clfs.inline.common.attrib, 42 50 clfs.inline 43 51 } 44 clfs.inline.dirname = 45 element c:dirname { 52 clfs.inline.replaceable = 53 element c:replaceable { 54 clfs.inline.common.attrib, 46 55 clfs.inline 56 } 57 clfs.inline.application = 58 element c:application { 59 clfs.inline.common.attrib, 60 clfs.inline 61 } 62 clfs.inline.dirname = 63 element c:dirname { 64 clfs.inline.common.attrib, 65 clfs.inline 47 66 } 48 67 clfs.inline.filename = 49 68 element c:filename { 69 clfs.inline.common.attrib, 50 70 clfs.inline 51 71 } 52 72 clfs.inline.command = 53 73 element c:command { 74 clfs.inline.common.attrib, 54 75 clfs.inline 55 76 } -
BOOK/schema/clfs/0.1/rng/clfs.rng
rd10f81a r9db1668 78 78 <!-- Inline Elements --> 79 79 <define name="clfs.inline"> 80 < oneOrMore>80 <zeroOrMore> 81 81 <choice> 82 <ref name="clfs.inline.strong"/> 82 <ref name="clfs.inline.literal"/> 83 <ref name="clfs.inline.replaceable"/> 84 <ref name="clfs.inline.application"/> 83 85 <ref name="clfs.inline.dirname"/> 84 86 <ref name="clfs.inline.filename"/> … … 86 88 <text/> 87 89 </choice> 88 </oneOrMore> 89 </define> 90 <define name="clfs.inline.strong"> 91 <element name="c:strong"> 90 </zeroOrMore> 91 </define> 92 <define name="clfs.inline.common.attrib"> 93 <ref name="clfs.attrib.arch"/> 94 <ref name="clfs.attrib.bits"/> 95 <ref name="clfs.attrib.multilib"/> 96 </define> 97 <define name="clfs.inline.literal"> 98 <element name="c:literal"> 99 <ref name="clfs.inline.common.attrib"/> 100 <ref name="clfs.inline"/> 101 </element> 102 </define> 103 <define name="clfs.inline.replaceable"> 104 <element name="c:replaceable"> 105 <ref name="clfs.inline.common.attrib"/> 106 <ref name="clfs.inline"/> 107 </element> 108 </define> 109 <define name="clfs.inline.application"> 110 <element name="c:application"> 111 <ref name="clfs.inline.common.attrib"/> 92 112 <ref name="clfs.inline"/> 93 113 </element> … … 95 115 <define name="clfs.inline.dirname"> 96 116 <element name="c:dirname"> 117 <ref name="clfs.inline.common.attrib"/> 97 118 <ref name="clfs.inline"/> 98 119 </element> … … 100 121 <define name="clfs.inline.filename"> 101 122 <element name="c:filename"> 123 <ref name="clfs.inline.common.attrib"/> 102 124 <ref name="clfs.inline"/> 103 125 </element> … … 105 127 <define name="clfs.inline.command"> 106 128 <element name="c:command"> 129 <ref name="clfs.inline.common.attrib"/> 107 130 <ref name="clfs.inline"/> 108 131 </element> -
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> -
BOOK/testpart.xml
rd10f81a r9db1668 66 66 <c:title>TestPackage</c:title> 67 67 <c:version>1.2.3</c:version> 68 <c:description>The <c:strong>Test</c:strong> package contains a test.</c:description>68 <c:description>The Test package contains a <c:command>test</c:command>.</c:description> 69 69 70 70 <c:install> … … 77 77 <c:command c:multilib="true" c:bits="64">CC="gcc ${BUILD64}" ./configure --prefix=/usr</c:command> 78 78 79 <c:para>Compile thepackage:</c:para>79 <c:para>Compile <c:filename>the</c:filename> package:</c:para> 80 80 81 81 <c:command>make</c:command>
Note:
See TracChangeset
for help on using the changeset viewer.