/usr/share/sgml/docbook/stylesheet/dsssl/modular/print/dbbibl.dsl is in docbook-dsssl 1.79-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 | ;; $Id: dbbibl.dsl,v 1.2 2002/06/09 12:04:09 nwalsh Exp $
;;
;; This file is part of the Modular DocBook Stylesheet distribution.
;; See ../README or http://nwalsh.com/docbook/dsssl/
;;
;; ......................... BIBLIOGRAPHY PARAMS .........................
;; these should be in dbparam...
(define %biblsep% ", ")
(define %biblend% ".")
(define %biblioentry-in-entry-order% #t)
;; .................... BIBLIOGRAPHY and BIBLIODIV ......................
(define (bibliography-content)
;; Note that the code below works for both the case where the bibliography
;; has BIBLIODIVs and the case where it doesn't, by the slightly subtle
;; fact that if it does, then allentries will be (empty-node-list).
(let* ((allbibcontent (children (current-node)))
(prebibcontent (node-list-filter-by-not-gi
allbibcontent
(list (normalize "biblioentry")
(normalize "bibliomixed"))))
(allentries (node-list-filter-by-gi
allbibcontent
(list (normalize "biblioentry")
(normalize "bibliomixed"))))
(entries (if biblio-filter-used
(biblio-filter allentries)
allentries)))
(make sequence
(process-node-list prebibcontent)
(process-node-list entries))))
(element (book bibliography)
(make simple-page-sequence
page-n-columns: %page-n-columns%
page-number-restart?: (or %page-number-restart%
(book-start?)
(first-chapter?))
page-number-format: ($page-number-format$)
use: default-text-style
left-header: ($left-header$)
center-header: ($center-header$)
right-header: ($right-header$)
left-footer: ($left-footer$)
center-footer: ($center-footer$)
right-footer: ($right-footer$)
start-indent: %body-start-indent%
input-whitespace-treatment: 'collapse
quadding: %default-quadding%
(make sequence
($component-title$)
(bibliography-content))
(make-endnotes)))
(element bibliography
;; A bibliography that's inside something else...
(let* ((sect (ancestor-member (current-node)
(append (section-element-list)
(component-element-list))))
(hlevel (+ (SECTLEVEL sect) 1))
(hs (HSIZE (- 4 hlevel))))
(make sequence
(make paragraph
font-family-name: %title-font-family%
font-weight: (if (< hlevel 5) 'bold 'medium)
font-posture: (if (< hlevel 5) 'upright 'italic)
font-size: hs
line-spacing: (* hs %line-spacing-factor%)
space-before: (* hs %head-before-factor%)
space-after: (* hs %head-after-factor%)
start-indent: (if (or (>= hlevel 3)
(member (gi) (list (normalize "refsect1")
(normalize "refsect2")
(normalize "refsect3"))))
%body-start-indent%
0pt)
first-line-start-indent: 0pt
quadding: %section-title-quadding%
keep-with-next?: #t
heading-level: (if %generate-heading-level% (+ hlevel 1) 0)
(element-title-sosofo (current-node)))
(bibliography-content))))
(element (bibliography title) (empty-sosofo))
(element bibliodiv
(let* ((allentries (node-list-filter-by-gi (children (current-node))
(list (normalize "biblioentry")
(normalize "bibliomixed"))))
(entries (if biblio-filter-used
(biblio-filter allentries)
allentries)))
(if (and biblio-filter-used (node-list-empty? entries))
(empty-sosofo)
(make display-group
space-before: %block-sep%
space-after: %block-sep%
start-indent: %body-start-indent%
(make sequence
($section-title$)
(process-node-list entries))))))
(element (bibliodiv title) (empty-sosofo))
;; ..................... BIBLIOGRAPHY ENTRIES .........................
(define (biblioentry-inline-sep node rest)
;; Output the character that should separate inline node from rest
(cond
((and (equal? (gi node) (normalize "title"))
(equal? (gi (node-list-first rest)) (normalize "subtitle")))
(make sequence
font-posture: 'italic
(literal ": ")))
(else
(literal %biblsep%))))
(define (biblioentry-inline-end blocks)
;; Output the character that should occur at the end of inline
(literal %biblend%))
(define (biblioentry-block-sep node rest)
;; Output the character that should separate block node from rest
(empty-sosofo))
(define (biblioentry-block-end)
;; Output the character that should occur at the end of block
(empty-sosofo))
(element biblioentry
(let* ((expanded-children (expand-children
(children (current-node))
(biblioentry-flatten-elements)))
(all-inline-children (if %biblioentry-in-entry-order%
(titlepage-gi-list-by-nodelist
(biblioentry-inline-elements)
expanded-children)
(titlepage-gi-list-by-elements
(biblioentry-inline-elements)
expanded-children)))
(block-children (if %biblioentry-in-entry-order%
(titlepage-gi-list-by-nodelist
(biblioentry-block-elements)
expanded-children)
(titlepage-gi-list-by-elements
(biblioentry-block-elements)
expanded-children)))
(leading-abbrev (if (equal? (normalize "abbrev")
(gi (node-list-first
all-inline-children)))
(node-list-first all-inline-children)
(empty-node-list)))
(inline-children (if (node-list-empty? leading-abbrev)
all-inline-children
(node-list-rest all-inline-children)))
(has-leading-abbrev? (not (node-list-empty? leading-abbrev)))
(xreflabel (if (or has-leading-abbrev? biblio-number)
#f
(attribute-string (normalize "xreflabel")))))
(make display-group
(make paragraph
space-before: %para-sep%
space-after: %para-sep%
start-indent: (+ (inherited-start-indent) 2pi)
first-line-start-indent: -2pi
(if (or biblio-number xreflabel has-leading-abbrev?)
(make sequence
(literal "[")
(if biblio-number
(literal (number->string (bibentry-number (current-node))))
(empty-sosofo))
(if xreflabel
(literal xreflabel)
(empty-sosofo))
(if has-leading-abbrev?
(with-mode biblioentry-inline-mode
(process-node-list leading-abbrev))
(empty-sosofo))
(literal "]\no-break-space;"))
(empty-sosofo))
(let loop ((nl inline-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(with-mode biblioentry-inline-mode
(process-node-list (node-list-first nl)))
(if (node-list-empty? (node-list-rest nl))
(biblioentry-inline-end block-children)
(biblioentry-inline-sep (node-list-first nl)
(node-list-rest nl)))
(loop (node-list-rest nl))))))
(make display-group
start-indent: (+ (inherited-start-indent) 2pi)
(let loop ((nl block-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(with-mode biblioentry-block-mode
(process-node-list (node-list-first nl)))
(if (node-list-empty? (node-list-rest nl))
(biblioentry-block-end)
(biblioentry-block-sep (node-list-first nl)
(node-list-rest nl)))
(loop (node-list-rest nl)))))))))
(mode biblioentry-inline-mode
(element abbrev
(make sequence
(process-children)))
(element affiliation
(let ((inline-children (node-list-filter-by-not-gi
(children (current-node))
(list (normalize "address")))))
(let loop ((nl inline-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(process-node-list (node-list-first nl))
(if (node-list-empty? (node-list-rest nl))
(empty-sosofo)
(literal ", "))
(loop (node-list-rest nl)))))))
(element artpagenums
(make sequence
(process-children)))
(element author
(literal (author-list-string)))
(element authorgroup
(process-children))
(element authorinitials
(make sequence
(process-children)))
(element collab
(let* ((nl (children (current-node)))
(collabname (node-list-first nl))
(affil (node-list-rest nl)))
(make sequence
(process-node-list collabname)
(if (node-list-empty? affil)
(empty-sosofo)
(let loop ((nl affil))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(literal ", ")
(process-node-list (node-list-first nl))
(loop (node-list-rest nl)))))))))
(element (collab collabname)
(process-children))
(element confgroup
(let ((inline-children (node-list-filter-by-not-gi
(children (current-node))
(list (normalize "address")))))
(let loop ((nl inline-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(process-node-list (node-list-first nl))
(if (node-list-empty? (node-list-rest nl))
(empty-sosofo)
(literal ", "))
(loop (node-list-rest nl)))))))
(element contractnum
(process-children))
(element contractsponsor
(process-children))
(element contrib
(process-children))
(element copyright
;; Just print the year(s)
(let ((years (select-elements (children (current-node))
(normalize "year"))))
(process-node-list years)))
(element (copyright year)
(make sequence
(process-children)
(if (not (last-sibling? (current-node)))
(literal ", ")
(empty-sosofo))))
(element corpauthor
(make sequence
(process-children)))
(element corpname
(make sequence
(process-children)))
(element date
(make sequence
(process-children)))
(element edition
(make sequence
(process-children)))
(element editor
(make sequence
(literal (gentext-edited-by))
(literal " ")
(literal (author-list-string))))
(element firstname
(make sequence
(process-children)))
(element honorific
(make sequence
(process-children)))
(element invpartnumber
(make sequence
(process-children)))
(element isbn
(make sequence
(process-children)))
(element issn
(make sequence
(process-children)))
(element issuenum
(make sequence
(process-children)))
(element lineage
(make sequence
(process-children)))
(element orgname
(make sequence
(process-children)))
(element othercredit
(literal (author-list-string)))
(element othername
(make sequence
(process-children)))
(element pagenums
(make sequence
(process-children)))
(element productname
(make sequence
($charseq$)
; this is actually a problem since "trade" is the default value for
; the class attribute. we can put this back in in DocBook 5.0, when
; class becomes #IMPLIED
; (if (equal? (attribute-string "class") (normalize "trade"))
; (literal "\trade-mark-sign;")
; (empty-sosofo))
))
(element productnumber
(make sequence
(process-children)))
(element pubdate
(make sequence
(process-children)))
(element publisher
(let ((pubname (select-elements (children (current-node))
(normalize "publishername")))
(cities (select-elements (descendants (current-node))
(normalize "city"))))
(make sequence
(process-node-list pubname)
(if (node-list-empty? cities)
(empty-sosofo)
(literal ", "))
(process-node-list cities))))
(element publishername
(make sequence
(process-children)))
(element (publisher address city)
(make sequence
(process-children)
(if (not (last-sibling? (current-node)))
(literal ", ")
(empty-sosofo))))
(element pubsnumber
(make sequence
(process-children)))
(element releaseinfo
(make sequence
(process-children)))
(element seriesvolnums
(make sequence
(process-children)))
(element subtitle
(make sequence
font-posture: 'italic
(process-children)))
(element surname
(make sequence
(process-children)))
(element title
(make sequence
font-posture: 'italic
(process-children)))
(element titleabbrev
(make sequence
(process-children)))
(element volumenum
(make sequence
(process-children)))
(element (bibliomixed title)
(make sequence
font-posture: 'italic
(process-children)))
(element (bibliomixed subtitle)
(make sequence
font-posture: 'italic
(process-children)))
(element (biblioset title)
(let ((rel (case-fold-up
(inherited-attribute-string (normalize "relation")))))
(cond
((equal? rel "ARTICLE") (make sequence
(literal (gentext-start-quote))
(process-children)
(literal (gentext-end-quote))))
(else (make sequence
font-posture: 'italic
(process-children))))))
(element (bibliomset title)
(let ((rel (case-fold-up
(inherited-attribute-string (normalize "relation")))))
(cond
((equal? rel "ARTICLE") (make sequence
(literal (gentext-start-quote))
(process-children)
(literal (gentext-end-quote))))
(else (make sequence
font-posture: 'italic
(process-children))))))
)
(mode biblioentry-block-mode
(element abstract
(make display-group
(process-children)))
(element (abstract title)
(make paragraph
font-weight: 'bold
(process-children)))
(element address
($linespecific-display$ %indent-address-lines% %number-address-lines%))
(element authorblurb
(make display-group
(process-children)))
(element printhistory
(make display-group
(process-children)))
(element revhistory
(make sequence
(make paragraph
font-weight: 'bold
(literal (gentext-element-name (current-node))))
(make table
before-row-border: #f
(make table-column
column-number: 1
width: (/ (- %body-width% (inherited-start-indent)) 3))
(make table-column
column-number: 2
width: (/ (- %body-width% (inherited-start-indent)) 3))
(make table-column
column-number: 3
width: (/ (- %body-width% (inherited-start-indent)) 3))
(process-children))))
(element (revhistory revision)
(let ((revnumber (select-elements (descendants (current-node))
(normalize "revnumber")))
(revdate (select-elements (descendants (current-node))
(normalize "date")))
(revauthor (select-elements (descendants (current-node))
(normalize "authorinitials")))
(revremark (node-list-filter-by-gi
(descendants (current-node))
(list (normalize "revremark")
(normalize "revdescription")))))
(make sequence
(make table-row
(make table-cell
column-number: 1
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revnumber))
(make paragraph
(make sequence
(literal (gentext-element-name-space (current-node)))
(process-node-list revnumber)))
(empty-sosofo)))
(make table-cell
column-number: 2
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revdate))
(make paragraph
(process-node-list revdate))
(empty-sosofo)))
(make table-cell
column-number: 3
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revauthor))
(make paragraph
(make sequence
(literal (gentext-revised-by))
(process-node-list revauthor)))
(empty-sosofo))))
(make table-row
cell-after-row-border: #f
(make table-cell
column-number: 1
n-columns-spanned: 3
n-rows-spanned: 1
(if (not (node-list-empty? revremark))
(make paragraph
space-after: %block-sep%
(process-node-list revremark))
(empty-sosofo)))))))
(element (revision revnumber) (process-children-trim))
(element (revision date) (process-children-trim))
(element (revision authorinitials) (process-children-trim))
(element (revision revremark) (process-children-trim))
(element (revision revdescription) (process-children))
(element seriesinfo
;; This is a nearly biblioentry recursively...
(let* ((expanded-children (expand-children
(children (current-node))
(biblioentry-flatten-elements)))
(all-inline-children (if %biblioentry-in-entry-order%
(titlepage-gi-list-by-nodelist
(biblioentry-inline-elements)
expanded-children)
(titlepage-gi-list-by-elements
(biblioentry-inline-elements)
expanded-children)))
(block-children (if %biblioentry-in-entry-order%
(titlepage-gi-list-by-nodelist
(biblioentry-block-elements)
expanded-children)
(titlepage-gi-list-by-elements
(biblioentry-block-elements)
expanded-children)))
(inline-children all-inline-children))
(make display-group
(make paragraph
space-before: %para-sep%
space-after: %para-sep%
start-indent: (+ (inherited-start-indent) 2pi)
first-line-start-indent: -2pi
(let loop ((nl inline-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(with-mode biblioentry-inline-mode
(process-node-list (node-list-first nl)))
(if (node-list-empty? (node-list-rest nl))
(biblioentry-inline-end block-children)
(biblioentry-inline-sep (node-list-first nl)
(node-list-rest nl)))
(loop (node-list-rest nl))))))
(make display-group
start-indent: (+ (inherited-start-indent) 2pi)
(let loop ((nl block-children))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(with-mode biblioentry-block-mode
(process-node-list (node-list-first nl)))
(if (node-list-empty? (node-list-rest nl))
(biblioentry-block-end)
(biblioentry-block-sep (node-list-first nl)
(node-list-rest nl)))
(loop (node-list-rest nl)))))))))
)
(element bibliomixed
(let* ((all-inline-children (children (current-node)))
(leading-abbrev (if (equal? (normalize "abbrev")
(gi (node-list-first
all-inline-children)))
(node-list-first all-inline-children)
(empty-node-list)))
(inline-children (if (node-list-empty? leading-abbrev)
all-inline-children
(node-list-rest all-inline-children)))
(has-leading-abbrev? (not (node-list-empty? leading-abbrev)))
(xreflabel (if (or has-leading-abbrev? biblio-number)
#f
(attribute-string (normalize "xreflabel")))))
(make paragraph
space-before: %para-sep%
space-after: %para-sep%
start-indent: (+ (inherited-start-indent) 2pi)
first-line-start-indent: -2pi
(if (or biblio-number xreflabel has-leading-abbrev?)
(make sequence
(literal "[")
(if biblio-number
(literal (number->string (bibentry-number (current-node))))
(empty-sosofo))
(if xreflabel
(literal xreflabel)
(empty-sosofo))
(if has-leading-abbrev?
(with-mode biblioentry-inline-mode
(process-node-list leading-abbrev))
(empty-sosofo))
(literal "]\no-break-space;"))
(empty-sosofo))
(with-mode biblioentry-inline-mode
(process-children)))))
;; ....................... BIBLIOGRAPHY ELEMENTS .......................
;; These are element construction rules for bibliography elements that
;; may occur outside of a BIBLIOENTRY or BIBLIOMIXED.
(element bibliomisc (process-children))
(element bibliomset (process-children))
(element biblioset (process-children))
(element bookbiblio (process-children))
(element street ($charseq$))
(element pob ($charseq$))
(element postcode ($charseq$))
(element city ($charseq$))
(element state ($charseq$))
(element country ($charseq$))
(element phone ($charseq$))
(element fax ($charseq$))
(element otheraddr ($charseq$))
(element affiliation ($charseq$))
(element shortaffil ($charseq$))
(element jobtitle ($charseq$))
(element orgdiv ($charseq$))
(element artpagenums ($charseq$))
(element author
(make sequence
(literal (author-list-string))))
(element authorgroup (process-children))
(element collab (process-children))
(element collabname ($charseq$))
(element authorinitials ($charseq$))
(element confgroup (process-children))
(element confdates ($charseq$))
(element conftitle ($charseq$))
(element confnum ($charseq$))
(element confsponsor ($charseq$))
(element contractnum ($charseq$))
(element contractsponsor ($charseq$))
(element copyright
(make paragraph
(make sequence
(literal (gentext-element-name (current-node)))
(literal "\no-break-space;")
(literal (dingbat "copyright"))
(literal "\no-break-space;")
(process-children-trim))))
(element year
(make sequence
(process-children)
(if (not (last-sibling? (current-node)))
(literal ", ")
(literal " "))))
(element holder ($charseq$))
(element corpauthor
(make sequence
(literal (author-list-string))))
(element corpname ($charseq$))
(element date ($charseq$))
(element edition ($charseq$))
(element editor ($charseq$))
(element isbn ($charseq$))
(element issn ($charseq$))
(element invpartnumber ($charseq$))
(element issuenum ($charseq$))
(element legalnotice ($semiformal-object$))
(element (legalnotice title) (empty-sosofo))
(element modespec (empty-sosofo))
(element orgname ($charseq$))
(element othercredit
(make sequence
(literal (author-list-string))))
(element pagenums ($charseq$))
(element contrib ($charseq$))
(element firstname ($charseq$))
(element honorific ($charseq$))
(element lineage ($charseq$))
(element othername ($charseq$))
(element surname ($charseq$))
(element printhistory (empty-sosofo))
(element productname
(make sequence
($charseq$)
; this is actually a problem since "trade" is the default value for
; the class attribute. we can put this back in in DocBook 5.0, when
; class becomes #IMPLIED
; (if (equal? (attribute-string "class") (normalize "trade"))
; (literal "\trade-mark-sign;")
; (empty-sosofo))
))
(element productnumber ($charseq$))
(element pubdate ($charseq$))
(element publisher (process-children))
(element publishername ($charseq$))
(element pubsnumber ($charseq$))
(element releaseinfo (empty-sosofo))
(element revision ($charseq$))
(element revnumber ($charseq$))
(element revremark ($charseq$))
(element revdescription ($block-container$))
(element seriesvolnums ($charseq$))
(element volumenum ($charseq$))
;; The (element (bookinfo revhistory)) construction rule is in dbinfo.dsl
;; It calls $book-revhistory$...
(define ($book-revhistory$)
(make sequence
(make paragraph
use: title-style
font-family-name: %title-font-family%
font-weight: 'bold
space-before: (* (HSIZE 3) %head-before-factor%)
space-after: (* (HSIZE 1) %head-before-factor%)
(literal (gentext-element-name (current-node))))
(make table
before-row-border: #f
(process-children))))
(element (revhistory revision)
(let ((revnumber (select-elements (descendants (current-node))
(normalize "revnumber")))
(revdate (select-elements (descendants (current-node))
(normalize "date")))
(revauthor (select-elements (descendants (current-node))
(normalize "authorinitials")))
(revremark (node-list-filter-by-gi
(descendants (current-node))
(list (normalize "revremark")
(normalize "revdescription")))))
(make sequence
(make table-row
(make table-cell
column-number: 1
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revnumber))
(make paragraph
(make sequence
(literal (gentext-element-name-space (current-node)))
(process-node-list revnumber)))
(empty-sosofo)))
(make table-cell
column-number: 2
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revdate))
(make paragraph
(process-node-list revdate))
(empty-sosofo)))
(make table-cell
column-number: 3
n-columns-spanned: 1
n-rows-spanned: 1
(if (not (node-list-empty? revauthor))
(make paragraph
(make sequence
(literal (gentext-revised-by))
(process-node-list revauthor)))
(empty-sosofo))))
(make table-row
cell-after-row-border: #f
(make table-cell
column-number: 1
n-columns-spanned: 3
n-rows-spanned: 1
(if (not (node-list-empty? revremark))
(make paragraph
space-after: %block-sep%
(process-node-list revremark))
(empty-sosofo)))))))
(element (revision revnumber) (process-children-trim))
(element (revision date) (process-children-trim))
(element (revision authorinitials) (process-children-trim))
(element (revision revremark) (process-children-trim))
(element (revision revdescription) (process-children))
|