cvs: php-gtk /docs Makefile.in bightml.xsl.in chunk-filename.xsl common.dsl.in common.xsl.in configure.in html-common.dsl html-common.xsl
html-locale.dsl.in html.dsl.in html.xsl.in htmlhelp.xsl.in pdflevels.dsl print.dsl.in print.xsl.in /docs/stylesheets/dsssl common.dsl.in
html-common.dsl html-locale.dsl.in html.dsl.in pdflevels.dsl print.dsl.in /docs/stylesheets/xsl bightml.xsl.in chunk-filename.xsl common.xsl.in
html-common.xsl html.xsl.in htmlhelp.xsl.in print.xsl.in temp.xsl
| From: | James Moore | Date: | Wed, 14 Mar 2001 18:31:53 +0000 |
| Subject: | cvs: php-gtk /docs Makefile.in bightml.xsl.in chunk-filename.xsl common.dsl.in common.xsl.in configure.in html-common.dsl html-common.xsl html-locale.dsl.in html.dsl.in html.xsl.in htmlhelp.xsl.in pdflevels.dsl print.dsl.in print.xsl.in /docs/stylesheets/dsssl common.dsl.in html-common.dsl html-locale.dsl.in html.dsl.in pdflevels.dsl print.dsl.in /docs/stylesheets/xsl bightml.xsl.in chunk-filename.xsl common.xsl.in html-common.xsl html.xsl.in htmlhelp.xsl.in print.xsl.in temp.xsl |
||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-867@lists.php.net to get a copy of this message | ||
jmoore Wed Mar 14 10:31:53 2001 EDT
Added files:
/php-gtk/docs/stylesheets/dsssl common.dsl.in html-common.dsl
html-locale.dsl.in html.dsl.in
pdflevels.dsl print.dsl.in
/php-gtk/docs/stylesheets/xsl bightml.xsl.in chunk-filename.xsl
common.xsl.in html-common.xsl
html.xsl.in htmlhelp.xsl.in
print.xsl.in temp.xsl
Removed files:
/php-gtk/docs bightml.xsl.in chunk-filename.xsl common.dsl.in
common.xsl.in html-common.dsl html-common.xsl
html-locale.dsl.in html.dsl.in html.xsl.in
htmlhelp.xsl.in pdflevels.dsl print.dsl.in
print.xsl.in
Modified files:
/php-gtk/docs Makefile.in configure.in
Log:
Restructure of docs dir
# Sorry about the mega patch.. this needed to be done as we will require
# more stylesheets than are pratical to keep in the root dir.
# Hope I dont fill your mailbox too much ;)
Index: php-gtk/docs/Makefile.in diff -u php-gtk/docs/Makefile.in:1.4 php-gtk/docs/Makefile.in:1.5 --- php-gtk/docs/Makefile.in:1.4 Tue Mar 13 07:37:02 2001 +++ php-gtk/docs/Makefile.in Wed Mar 14 10:31:52 2001 @@ -17,7 +17,7 @@ # +----------------------------------------------------------------------+ # -# $Id: Makefile.in,v 1.4 2001/03/13 15:37:02 jmoore Exp $ +# $Id: Makefile.in,v 1.5 2001/03/14 18:31:52 jmoore Exp $ # VPATH=@srcdir@ @@ -29,27 +29,30 @@ CATALOG=@CATALOG@ VERSION="@PHP_VERSION@" -HTML_STYLESHEET=html.dsl -PRINT_STYLESHEET=print.dsl +DSSSL_HTML_STYLESHEET=stylesheets/dsssl/html.dsl +DSSSL_PRINT_STYLESHEET=stylesheets/dsssl/print.dsl +dsssl_stylesheet_dir=stylesheets/dsssl +xsl_stylesheet_dir=stylesheets/xsl +dsssl_srcdir=$(srcdir)/$(dsssl_stylesheet_dir) + +DSSSL_HTML_DEPS=$(DSSSL_HTML_STYLESHEET) \ + dsssl-html-common.dsl dsssl-common.dsl +DSSSl_PRINT_DEPS=$(DSSSL_PRINT_STYLESHEET) common.dsl -HTML_DEPS=$(HTML_STYLESHEET) html-common.dsl common.dsl -PRINT_DEPS=$(PRINT_STYLESHEET) common.dsl - PALMDOCTITLE=@PALMDOCTITLE@ all: html DIST_FILES=manual.zip manual.tar.gz bigmanual.html.gz \ manual_doc.pdb manual.txt.gz -MIRROR_TARGETS=php/index.php html/index.html $(DIST_FILES) -html.dsl: $(srcdir)/html.dsl.in ./config.status +html.dsl: $(dsssl_scdir)/html.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -print.dsl: $(srcdir)/print.dsl.in ./config.status +print.dsl: $(dsssl_srcdir)/print.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -common.dsl: $(srcdir)/common.dsl.in ./config.status +common.dsl: $(dsssl_srcdir)/common.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status manual.xml: $(srcdir)/manual.xml.in .manual.xml @@ -69,14 +72,12 @@ Makefile: $(srcdir)/Makefile.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -mirror-files: $(MIRROR_TARGETS) - snapshot: manual-snapshot.tar.gz manual-snapshot.tar.gz: bigmanual.html html/index.html manual.rtf manual.txt tar -cvzf $@ bigmanual.html html/*.html manual.rtf manual.txt -bigmanual.html: manual.xml $(HTML_DEPS) +bigmanual.html: manual.xml $(DSSSL_HTML_DEPS) $(JADE) $(CATALOG) -V nochunks -d $(HTML_STYLESHEET) -t sgml $(srcdir)/phpdocxml.dcl manual.xml > $@ bigmanual.html.gz: bigmanual.html @@ -101,7 +102,7 @@ html/index.html: manual.xml $(HTML_DEPS) @test -d html || mkdir html - $(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(srcdir)/phpdocxml.dcl manual.xml + $(JADE) $(CATALOG) -d $(DSSSL_HTML_STYLESHEET) -V use-output-dir -t sgml $(srcdir)/phpdocxml.dcl manual.xml manual.txt: bigmanual.html lynx -nolist -dump file:`pwd`/bigmanual.html > manual.txt @@ -159,9 +160,10 @@ rm -f chapters.ent distclean: clean - rm -f Makefile html.dsl print.dsl \ - manual.xml common.dsl \ - html-locale.dsl version.ent \ - configure config.cache config.status \ - html.dsl print.dsl quickref.dsl html.xsl \ - bightml.xsl print.xsl htmlhelp.xsl common.xsl + rm -f Makefile manual.xml configure + rm -f config.cache config.status version.ent + cd stylesheets/dsssl; rm -f html.dsl print.dsl \ + common.dsl; rm -f html-locale.dsl html.dsl \ + print.dsl quickref.dsl + cd stylesheets/xsl; rm -f html.xsl bightml.xsl \ + print.xsl htmlhelp.xsl common.xsl Index: php-gtk/docs/configure.in diff -u php-gtk/docs/configure.in:1.4 php-gtk/docs/configure.in:1.5 --- php-gtk/docs/configure.in:1.4 Tue Mar 13 07:37:02 2001 +++ php-gtk/docs/configure.in Wed Mar 14 10:31:52 2001 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.4 2001/03/13 15:37:02 jmoore Exp $ +dnl $Id: configure.in,v 1.5 2001/03/14 18:31:52 jmoore Exp $ AC_INIT(global.ent) @@ -292,16 +292,16 @@ AC_OUTPUT(\ Makefile \ version.ent \ -common.dsl \ -html.dsl \ -html-locale.dsl \ -print.dsl \ manual.xml \ -html.xsl \ -bightml.xsl \ -print.xsl \ -common.xsl \ -htmlhelp.xsl) +stylesheets/dsssl/common.dsl \ +stylesheets/dsssl/html.dsl \ +stylesheets/dsssl/html-locale.dsl \ +stylesheets/dsssl/print.dsl \ +stylesheets/xsl/html.xsl \ +stylesheets/xsl/bightml.xsl \ +stylesheets/xsl/print.xsl \ +stylesheets/xsl/common.xsl \ +stylesheets/xsl/htmlhelp.xsl) dnl sanity checks for SuSE 6.x if test -e /usr/share/sgml/docbk30/docbook.dcl Index: php-gtk/docs/stylesheets/dsssl/common.dsl.in +++ php-gtk/docs/stylesheets/dsssl/common.dsl.in ;; -*- Scheme -*- ;; ;; $Id: common.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization common to the HTML ;; and print versions. ;; ;; Stylesheets Localization (define %default-language% "@LANG@") (define %root-filename% "index") (define %use-id-as-filename% #t) (define %gentext-nav-tblwidth% "100%") (define %refentry-function% #t) (define %refentry-generate-name% #f) (define %funcsynopsis-style% 'ansi) (define ($legalnotice-link-file$ legalnotice) (string-append "copyright" %html-ext%)) (define %generate-legalnotice-link% #t) (define %footnotes-at-end% #t) (define %force-chapter-toc% #t) (define newline "\U-000D") (define %number-programlisting-lines% #f) (define %linenumber-mod% 1) (define %shade-verbatim% #t) (define %prefers-ordinal-label-name-format% @NUMBER_FIRST@) (define ($generate-book-lot-list$) (list)) (define %gentext-ja-edited-by% "Edited by") (define (php-code code) (make processing-instruction data: (string-append "php " code "?"))) (define quicksort (quicksort::generic null? car cdr append cons '())) (define nl-quicksort (quicksort::generic node-list-empty? node-list-first node-list-rest node-list node-list (empty-node-list))) (define quicksort::generic (lambda(is-null? first others concat add empty) (letrec ((collect ;; Collect is an helper function doing the real work (lambda (pivot ls lgroup rgroup less?) (if (is-null? ls) (concat (impl lgroup less?) (add pivot (impl rgroup less?))) (if (less? pivot (first ls)) (collect pivot (others ls) lgroup (add (first ls) rgroup) less?) (collect pivot (others ls) (add (first ls) lgroup) rgroup less?))))) (impl ;; impl first test some trivial sorting case and then call ;; the procedure collect (lambda (ls less?) (if (or (is-null? ls) (is-null? (others ls))) ls (collect (first ls) (others ls) empty empty less?))))) ;; we return the new defined procedure impl))) Index: php-gtk/docs/stylesheets/dsssl/html-common.dsl +++ php-gtk/docs/stylesheets/dsssl/html-common.dsl ;; -*- Scheme -*- ;; ;; $Id: html-common.dsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; Returns the depth of the auto-generated TOC (table of contents) that ;; should be made at the nd-level (define (toc-depth nd) (if (string=? (gi nd) "book") 2 ; the depth of the top-level TOC 1 ; the depth of all other TOCs )) (element (funcdef function) ($bold-seq$ (make sequence (process-children) ) ) ) (define (is-true-optional nl) (and (equal? (gi (parent nl)) (normalize "parameter")) (equal? 0 (string-length (strip (data (preced nl))))) (equal? 0 (string-length (strip (data (follow nl))))) ) ) (define (has-true-optional nl) (is-true-optional (node-list-first-element (select-elements (descendants nl) (normalize "optional")) ) ) ) (define (count-true-optionals nl) (let loop ((result 0) (nl (select-elements (descendants nl) (normalize "optional"))) ) (if(node-list-empty? nl) result (if(is-true-optional(node-list-first nl)) (loop (+ result 1) (node-list-rest nl)) (loop result (node-list-rest nl)) ) ) ) ) ;; there are two different kinds of optionals ;; optional parameters and optional parameter parts ;; an optional parameter is identified by an optional tag ;; with a parameter tag as its parent ;; and only whitespace between them (element optional ;;check for true optional parameter (if (is-true-optional (current-node)) ;; yes - handle '[...]' in paramdef (process-children-trim) ;; no - do '[...]' output (make sequence (literal %arg-choice-opt-open-str%) (process-children-trim) (literal %arg-choice-opt-close-str%) ) ) ) (element (paramdef parameter) (make sequence font-posture: 'italic (process-children-trim) ) ) ;; now this is going to be tricky (element paramdef (make sequence ;; special treatment for first parameter in funcsynopsis (if (equal? (child-number (current-node)) 1) ;; is first ? (make sequence ;; start parameter list (literal " (") ;; is optional ? ( if (has-true-optional (current-node)) (literal %arg-choice-opt-open-str%) (empty-sosofo) ) ) ;; not first (empty-sosofo) ) ;; (process-children-trim) ;; special treatment for last parameter (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) ;; more parameters will follow (make sequence ;; next is optional ? ( if (has-true-optional (ifollow (current-node))) ;; optional (make sequence (literal " ") (literal %arg-choice-opt-open-str%) ) ;; not optional (empty-sosofo) ) (literal ", " ) ) ;; last parameter (make sequence (literal (let loop ((result "")(count (count-true-optionals (parent (current-node))))) (if (<= count 0) result (loop (string-append result %arg-choice-opt-close-str%)(- count 1)) ) ) ) ( literal ")" ) ) ) ) ) (element function (let* ((function-name (data (current-node))) (linkend (string-append "function." (string-replace function-name "_" "-"))) (target (element-with-id linkend)) (parent-gi (gi (parent)))) (cond ;; function names should be plain in FUNCDEF ((equal? parent-gi "funcdef") (process-children)) ;; if a valid ID for the target function is not found, or if the ;; FUNCTION tag is within the definition of the same function, ;; make it bold, add (), but don't make a link ((or (node-list-empty? target) (equal? (case-fold-down (data (node-list-first (select-elements (node-list-first (children (select-elements (children (ancestor-member (parent) (list "refentry"))) "refnamediv"))) "refname")))) function-name)) ($bold-seq$ (make sequence (process-children) (literal "()")))) ;; else make a link to the function and add () (else (make element gi: "A" attributes: (list (list "HREF" (href-to target))) ($bold-seq$ (make sequence (process-children) (literal ) (literal "()")))))))) (element example (make sequence (make element gi: "TABLE" attributes: (list (list "WIDTH" "100%") (list "BORDER" "0") (list "CELLPADDING" "0") (list "CELLSPACING" "0") (list "CLASS" "EXAMPLE")) (make element gi: "TR" (make element gi: "TD" ($formal-object$)))))) (mode book-titlepage-recto-mode (element authorgroup (process-children)) (element author (let ((author-name (author-string)) (author-affil (select-elements (children (current-node)) (normalize "affiliation")))) (make sequence (make element gi: "DIV" attributes: (list (list "CLASS" (gi))) (literal author-name)) (process-node-list author-affil)))) ) Index: php-gtk/docs/stylesheets/dsssl/html-locale.dsl.in +++ php-gtk/docs/stylesheets/dsssl/html-locale.dsl.in ;; -*- Scheme -*- ;; ;; $Id: html-locale.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization for locale specific ;; preferences in HTML version. ;; (define ($component-title$ #!optional (titlegi "H1") (subtitlegi "H2")) (let* ((info (cond ((equal? (gi) (normalize "appendix")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "chapter")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "reference")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make element gi: titlegi (make element gi: "A" attributes: (list (list "NAME" (element-id))) (if (and %chapter-autolabel% (or (equal? (gi) (normalize "chapter")) (equal? (gi) (normalize "appendix")))) (if %prefers-ordinal-label-name-format% (literal (element-label (current-node)) ". " (gentext-element-name (gi)) (gentext-label-title-sep (gi))) (literal (gentext-element-name-space (gi)) (element-label (current-node)) (gentext-label-title-sep (gi)))) (empty-sosofo)) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode title-mode (process-node-list titles))))) (if (node-list-empty? subtitles) (empty-sosofo) (with-mode subtitle-mode (make element gi: subtitlegi (process-node-list subtitles))))))) (define (nav-context-sosofo elemnode) (let* ((component (ancestor-member elemnode (append (book-element-list) (division-element-list) (component-element-list)))) (context-text (inherited-dbhtml-value elemnode "context-text"))) (if (and context-text (not (string=? context-text ""))) (literal context-text) (if (equal? (element-label component) "") (make sequence (element-title-sosofo component)) (make sequence ;; Special case. This is a bit of a hack. ;; I need to revisit this aspect of ;; appendixes. (if (and (equal? (gi component) (normalize "appendix")) (or (equal? (gi elemnode) (normalize "sect1")) (equal? (gi elemnode) (normalize "section"))) (equal? (gi (parent component)) (normalize "article"))) (empty-sosofo) (if %prefers-ordinal-label-name-format% (make sequence (element-label-sosofo component) (literal ". " (gentext-element-name (gi component)))) (make sequence (literal (gentext-element-name-space (gi component))) (element-label-sosofo component)))) (literal (gentext-label-title-sep (gi component))) (element-title-sosofo component)))))) (define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html; charset=@ENCODING@")))) Index: php-gtk/docs/stylesheets/dsssl/html.dsl.in +++ php-gtk/docs/stylesheets/dsssl/html.dsl.in <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY docbook.dsl SYSTEM "@DOCBOOK_HTML@" CDATA DSSSL> <!ENTITY html-common.dsl SYSTEM "@srcdir@/html-common.dsl"> <!ENTITY html-locale.dsl SYSTEM "html-locale.dsl"> <!ENTITY common.dsl SYSTEM "common.dsl"> ]> <!-- $Id: html.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ HTML-specific stylesheet customization. --> <style-sheet> <style-specification id="docbook-php-html" use="docbook"> <style-specification-body> (define %html-ext% ".html") (define %output-dir% "html") &html-common.dsl; &html-locale.dsl; &common.dsl; </style-specification-body> </style-specification> <external-specification id="docbook" document="docbook.dsl"> </style-sheet> Index: php-gtk/docs/stylesheets/dsssl/pdflevels.dsl +++ php-gtk/docs/stylesheets/dsssl/pdflevels.dsl ;; ;; $Id: pdflevels.dsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization to get bookmark levels ;; right in PDF version of manual. ;; ;; borrowed from print/dbsect.dsl (define ($section-title$) (let* ((sect (current-node)) (info (info-element)) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children sect) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle"))) (renderas (inherited-attribute-string (normalize "renderas") sect)) (hlevel ;; the apparent section level; (if renderas ;; if not real section level, (string->number ;; then get the apparent level (substring renderas 4 5)) ;; from "renderas", (SECTLEVEL))) ;; else use the real level (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: (if (node-list-empty? subtitles) (* hs %head-after-factor%) 0pt) start-indent: (if (or (>= hlevel 3) (member (gi) (list (normalize "refsynopsisdiv") (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 2) 0) ;; SimpleSects are never AUTO numbered...they aren't hierarchical (if (string=? (element-label (current-node)) "") (empty-sosofo) (literal (element-label (current-node)) (gentext-label-title-sep (gi sect)))) (element-title-sosofo (current-node))) (with-mode section-title-mode (process-node-list subtitles)) ($section-info$ info)))) ;; borrowed from print/dbcompon.dsl (define ($sub-component$) (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 ($sub-component-title$) (process-children)) (make-endnotes))) (define ($sub-component-title$) (let* ((info (cond ((equal? (gi) (normalize "appendix")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "chapter")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "reference")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (partintro (select-elements (children (current-node)) (normalize "partintro"))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: (HSIZE 4) line-spacing: (* (HSIZE 4) %line-spacing-factor%) space-before: (* (HSIZE 4) %head-before-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-title-quadding% heading-level: (if %generate-heading-level% 2 0) keep-with-next?: #t (if (string=? (element-label) "") (empty-sosofo) (literal ;; (gentext-element-name-space (current-node)) (if (equal? (gi) (normalize "reference")) "" (gentext-element-name-space (current-node))) (element-label) (gentext-label-title-sep (gi)))) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode component-title-mode (make sequence (process-node-list titles))))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-posture: 'italic font-size: (HSIZE 3) line-spacing: (* (HSIZE 3) %line-spacing-factor%) space-before: (* 0.5 (* (HSIZE 3) %head-before-factor%)) space-after: (* (HSIZE 4) %head-after-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-subtitle-quadding% keep-with-next?: #t (with-mode sub-component-title-mode (make sequence (process-node-list subtitles))) (make sequence ($process-partintro$ partintro #t) (empty-sosofo)))))) (mode sub-component-title-mode (element title (process-children)) (element subtitle (process-children)) ) (define ($component-title$) (let* ((info (cond ;; ((equal? (gi) (normalize "appendix")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ;; ((equal? (gi) (normalize "chapter")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "part")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ;; ((equal? (gi) (normalize "reference")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: (* (HSIZE 4) 1.25) line-spacing: (* (HSIZE 4) %line-spacing-factor%) space-before: (* (HSIZE 4) %head-before-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-title-quadding% heading-level: (if %generate-heading-level% 1 0) keep-with-next?: #f (if (string=? (element-label) "") (empty-sosofo) (literal (gentext-element-name-space (current-node)) (element-label) (gentext-label-title-sep (gi)))) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode component-title-mode (make sequence (process-node-list titles))))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-posture: 'italic font-size: (HSIZE 3) line-spacing: (* (HSIZE 3) %line-spacing-factor%) space-before: (* 0.5 (* (HSIZE 3) %head-before-factor%)) space-after: (* (HSIZE 4) %head-after-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-subtitle-quadding% keep-with-next?: #f (with-mode component-title-mode (make sequence (process-node-list subtitles))))))) ;; own code (element part ($component$)) (element (part title) (empty-sosofo)) (element chapter ($sub-component$)) (element (chapter title) (empty-sosofo)) (element reference ($sub-component$)) (element (reference title) (empty-sosofo)) (element appendix ($sub-component$)) (element (appendix title) (empty-sosofo)) (define %generate-part-titlepage% #t) (define %generate-chapter-titlepage% #t) (define %generate-reference-titlepage% #t) (define %generate-partintro-on-titlepage% #t) Index: php-gtk/docs/stylesheets/dsssl/print.dsl.in +++ php-gtk/docs/stylesheets/dsssl/print.dsl.in <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY docbook.dsl SYSTEM "@DOCBOOK_PRINT@" CDATA DSSSL> <!ENTITY common.dsl SYSTEM "common.dsl"> <!ENTITY pdflevels.dsl SYSTEM "pdflevels.dsl"> <!ENTITY version.dsl SYSTEM "@srcdir@/version.dsl"> ]> <!-- $Id: print.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ This file contains printout-specific stylesheet customization. --> <style-sheet> <style-specification id="local-php-print" use="docbook"> <style-specification-body> <!-- override default setting for some output parameters (defaults are defined in /usr/share/sgml/docbkdsl/print/dbparam.dsl) --> (define %paper-type% "@PAPER_TYPE@") @LEFT_MARGIN@ @RIGHT_MARGIN@ @TOP_MARGIN@ @HEADER_MARGIN@ @FOOTER_MARGIN@ @BOTTOM_MARGIN@ @LINE_SPACING@ @HEAD_BEFORE@ @HEAD_AFTER@ @BODY_START@ @BLOCK_SEP@ &version.dsl; &pdflevels.dsl; (define ($refentry-title$) (let* ((refmeta (select-elements (children (current-node)) (normalize "refmeta"))) (refentrytitle (select-elements (children refmeta) (normalize "refentrytitle"))) (refnamediv (select-elements (children (current-node)) (normalize "refnamediv"))) (refdescriptor (select-elements (children refnamediv) (normalize "refdescriptor"))) (refname (select-elements (children refnamediv) (normalize "refname"))) (title (if (node-list-empty? refentrytitle) (if (node-list-empty? refdescriptor) (node-list-first refname) refdescriptor) refentrytitle)) (slevel (SECTLEVEL)) ;; the true level in the section hierarchy (hlevel (if (> slevel 2) 2 slevel)) ;; limit to sect2 equiv. (hs (HSIZE (- 4 hlevel)))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: hs line-spacing: (* hs %line-spacing-factor%) space-before: (* hs %head-before-factor%) space-after: (* hs %head-after-factor%) start-indent: %body-start-indent% first-line-start-indent: (- %body-start-indent%) quadding: 'start heading-level: (if %generate-heading-level% 3 0) keep-with-next?: #t (make sequence (process-node-list (children title)) (make sequence font-weight: 'light font-size: (* 0.5 (inherited-font-size)) font-posture: 'italic (literal " (") (version-info title) (literal ")") ) ) ) ) ) (element refentry (make display-group keep: %refentry-keep% (if (or %refentry-new-page% (node-list=? (current-node) (sgml-root-element))) (make simple-page-sequence page-n-columns: %page-n-columns% 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$) input-whitespace-treatment: 'collapse quadding: %default-quadding% ($refentry-title$) (process-children)) (make sequence ($refentry-title$) ($block-container$))) (make-endnotes))) (element refname (make sequence (if (and %refentry-generate-name% (first-sibling? (current-node))) ($lowtitlewithsosofo$ 1 (literal (gentext-element-name (current-node)))) (empty-sosofo)) ) ) (element refsect1 (if (node-list=? (current-node) (sgml-root-element)) (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 (process-children))) (make display-group space-before: %block-sep% space-after: 0in start-indent: %body-start-indent% (make sequence (process-children))))) (element (funcdef function) ($bold-seq$ (make sequence (process-children) ) ) ) (element refpurpose (make sequence font-family-name: %body-font-family% (make sequence (process-children)) )) (element funcsynopsis (let* ((width-in-chars (if (attribute-string "width") (string->number (attribute-string "width")) %verbatim-default-width%)) (fsize (lambda () (if (or (attribute-string (normalize "width")) (not %verbatim-size-factor%)) (/ (/ (- %text-width% (inherited-start-indent)) width-in-chars) 0.7) (* (inherited-font-size) %verbatim-size-factor%))))) ;; This used to be a sequence, but that caused the start-indent to be ;; wrong when it was the first element of a RefSect. Making it a ;; paragraph makes the bug go away and doesn't seem to have any ill ;; effects. Need to investigate further... (make paragraph font-family-name: %mono-font-family% font-size: (fsize) font-weight: 'medium font-posture: 'upright line-spacing: (* (fsize) %line-spacing-factor%) ($informal-object$)))) ;; there are two different kinds of optionals ;; optional parameters and optional parameter parts ;; an optional parameter is identified by an optional tag ;; with a parameter tag as its parent ;; and only whitespace between them (define (is-true-optional nl) (and (equal? (gi (parent nl)) (normalize "parameter")) (equal? 0 (string-length (strip (data (preced nl))))) (equal? 0 (string-length (strip (data (follow nl))))) ) ) (define (has-true-optional nl) (is-true-optional (node-list-first-element (select-elements (descendants nl) (normalize "optional")) ) ) ) (define (count-true-optionals nl) (let loop ((result 0) (nl (select-elements (descendants nl) (normalize "optional"))) ) (if(node-list-empty? nl) result (if(is-true-optional(node-list-first nl)) (loop (+ result 1) (node-list-rest nl)) (loop result (node-list-rest nl)) ) ) ) ) (element optional ;;check for true optional parameter (if (is-true-optional (current-node)) ;; yes - handle '[...]' in paramdef (process-children-trim) ;; no - do '[...]' output (make sequence (literal %arg-choice-opt-open-str%) (process-children-trim) (literal %arg-choice-opt-close-str%) ) ) ) (element (paramdef parameter) (make sequence font-posture: 'italic (process-children-trim) ) ) ;; now this is going to be tricky (element paramdef (make sequence ;; special treatment for first parameter in funcsynopsis (if (equal? (child-number (current-node)) 1) ;; is first ? (make sequence ;; start parameter list (literal " (") ;; is optional ? ( if (has-true-optional (current-node)) (literal %arg-choice-opt-open-str%) (empty-sosofo) ) ) ;; not first (empty-sosofo) ) ;; (process-children-trim) ;; special treatment for last parameter (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) ;; more parameters will follow (make sequence ;; next is optional ? ( if (has-true-optional (ifollow (current-node))) ;; optional (make sequence (literal " ") (literal %arg-choice-opt-open-str%) ) ;; not optional (empty-sosofo) ) (literal ", " ) ) ;; last parameter (make sequence (literal (let loop ((result "")(count (count-true-optionals (parent (current-node))))) (if (<= count 0) result (loop (string-append result %arg-choice-opt-close-str%)(- count 1)) ) ) ) ( literal ")" ) ) ) ) ) (element function (cond ;; function names should be plain in FUNCDEF ((equal? (gi (parent)) "funcdef") (process-children)) ;; else make the function name bold and add "()" ;; we should add some cross-reference here later (else ($bold-seq$ (make sequence (process-children) (literal "()")))))) &common.dsl; </style-specification-body> </style-specification> <external-specification id="docbook" document="docbook.dsl"> </style-sheet> Index: php-gtk/docs/stylesheets/xsl/bightml.xsl.in +++ php-gtk/docs/stylesheets/xsl/bightml.xsl.in <!-- HTML specific stylesheet $Id: bightml.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="@DOCBOOKXSL_BIGHTML@"/> <xsl:include href="html-common.xsl"/> <xsl:output method="html" encoding="@ENCODING@"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/chunk-filename.xsl +++ php-gtk/docs/stylesheets/xsl/chunk-filename.xsl <!-- This templates takes filename from id attribute if present. In the future, something like this will be standard part of stylesheets. $Id: chunk-filename.xsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- <xsl:param name="use.id.as.filename" select="1"/> --> <xsl:template match="*" mode="chunk-filename"> <xsl:param name="recursive" select="false()"/> <!-- returns the filename of a chunk --> <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable> <xsl:variable name="filename"> <xsl:call-template name="dbhtml-filename"/> </xsl:variable> <xsl:variable name="dir"> <xsl:call-template name="dbhtml-dir"/> </xsl:variable> <xsl:choose> <xsl:when test="$ischunk='0'"> <!-- if called on something that isn't a chunk, walk up... --> <xsl:choose> <xsl:when test="count(parent::*)>0"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="$recursive"/> </xsl:apply-templates> </xsl:when> <!-- unless there is no up, in which case return "" --> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="not($recursive) and $filename != ''"> <!-- if this chunk has an explicit name, use it --> <xsl:if test="$dir != ''"> <xsl:value-of select="$dir"/> <xsl:text>/</xsl:text> </xsl:if> <xsl:value-of select="$filename"/> </xsl:when> <xsl:when test="not($recursive) and @id != '' and $use.id.as.filename=1 and name(.) != 'book'"> <!-- if this chunk has an explicit name in id attribute, use it --> <xsl:if test="$dir != ''"> <xsl:value-of select="$dir"/> <xsl:text>/</xsl:text> </xsl:if> <xsl:value-of select="@id"/> <xsl:value-of select="$html.ext"/> </xsl:when> <xsl:when test="name(.)='set'"> <xsl:value-of select="$root.filename"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='book'"> <xsl:choose> <xsl:when test="count(parent::*)>0"> <xsl:text>bk</xsl:text> <xsl:number level="any" format="01"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$root.filename"/> </xsl:otherwise> </xsl:choose> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='article'"> <xsl:choose> <xsl:when test="/set"> <!-- in a set, make sure we inherit the right book info... --> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:when> <xsl:when test="count(parent::*)>0"> <!-- if we aren't the root, name them numerically ... --> <xsl:text>ar</xsl:text> <xsl:number level="any" format="01" from="book"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$root.filename"/> </xsl:otherwise> </xsl:choose> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='preface'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>pr</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='chapter'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ch</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='appendix'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ap</xsl:text> <xsl:number level="any" format="a" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='legalnotice'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="false()" /> </xsl:apply-templates> </xsl:if> <xsl:text>asdasdasdln</xsl:text> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext" /> </xsl:if> </xsl:when> <xsl:when test="name(.)='part'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>pt</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='reference'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>rn</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='refentry'"> <xsl:if test="parent::reference"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>re</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='colophon'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>co</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='sect1' or name(.)='section'"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> <xsl:text>s</xsl:text> <xsl:number level="any" format="01" from="preface|chapter|appendix"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='bibliography'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>bi</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='glossary'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>go</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='index'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ix</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='setindex'"> <xsl:text>si</xsl:text> <xsl:number level="any" format="01" from="set"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:text>chunk-filename-error-</xsl:text> <xsl:value-of select="name(.)"/> <xsl:number level="any" format="01" from="set"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="chunk"> <xsl:param name="node" select="."/> <!-- returns 1 if $node is a chunk --> <xsl:choose> <xsl:when test="name($node)='sect1' and count($node/preceding-sibling::sect1) > 0">1</xsl:when> <xsl:when test="name($node)='section' and count($node/parent::section) = 0 and count($node/preceding-sibling::section) > 0">1</xsl:when> <xsl:when test="name($node)='preface'">1</xsl:when> <xsl:when test="name($node)='chapter'">1</xsl:when> <xsl:when test="name($node)='appendix'">1</xsl:when> <xsl:when test="name($node)='article'">1</xsl:when> <xsl:when test="name($node)='part'">1</xsl:when> <xsl:when test="name($node)='reference'">1</xsl:when> <xsl:when test="name($node)='refentry'">1</xsl:when> <xsl:when test="name($node)='index' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='bibliography' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='glossary' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='colophon'">1</xsl:when> <xsl:when test="name($node)='book'">1</xsl:when> <xsl:when test="name($node)='set'">1</xsl:when> <xsl:when test="name($node)='setindex'">1</xsl:when> <xsl:when test="name($node)='legalnotice'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="legalnotice" mode="book.titlepage.recto.mode"> <xsl:call-template name="process-chunk-element" /> </xsl:template> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/common.xsl.in +++ php-gtk/docs/stylesheets/xsl/common.xsl.in <!-- Implements Common Named Templates $Id: common.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="authorgroup-title"> <xsl:param name="id"></xsl:param> <xsl:choose> <xsl:when test="$id='phpgtk.authors'"> <xsl:text>PHP-GTK Authors</xsl:text> </xsl:when> <xsl:when test="$id='phpgtk.contributors'"> <xsl:text>PHP-GTK Contributors</xsl:text> </xsl:when> <xsl:when test="$id='phpgtk.manual.contributors'"> <xsl:text>PHP-GTK Manual Contributors</xsl:text> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="author-email-link"> <xsl:if test="name(.)='author' or name(.)='editor'"> <xsl:text>mailto:</xsl:text><xsl:value-of select="./authoremail" /> </xsl:if> </xsl:template> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html-common.xsl +++ php-gtk/docs/stylesheets/xsl/html-common.xsl <!-- Implements HTML Specific Stylesheets $Id: html-common.xsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="authorgroup" mode="book.titlepage.recto.mode"> <h3> <xsl:call-template name="authorgroup-title"> <xsl:with-param name="id"> <xsl:value-of select="@id" /> </xsl:with-param> </xsl:call-template> </h3> <xsl:apply-templates mode="book.titlepage.recto.mode" /> </xsl:template> <xsl:template match="author" mode="book.titlepage.recto.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:call-template name="editor-author-text" /> </div> </xsl:template> <xsl:template match="author/contrib" mode="book.titlepage.recto.mode"> <xsl:text> : </xsl:text><xsl:apply-templates mode="book.title.recto.mode" /> </xsl:template> <xsl:template name="editor-author-text" > <xsl:element name="A"> <xsl:attribute name="HREF"> <xsl:call-template name="author-email-link" /> </xsl:attribute> <xsl:apply-templates select="honorific|firstname|othername|surname|lineage" mode="book.titlepage.recto.mode" /> </xsl:element> <xsl:apply-templates select="affiliation|authorblurb|contrib" mode="book.titlepage.recto.mode" /> </xsl:template> <xsl:template match="editor" mode="book.titlepage.recto.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:element name="h4"> <xsl:attribute name="class">editedby</xsl:attribute> <xsl:text>Edited by</xsl:text> </xsl:element> <xsl:element name="h3"> <xsl:attribute name="class"> <xsl:value-of select="name(.)" /> </xsl:attribute> <xsl:call-template name="editor-author-text" /> </xsl:element> </div> </xsl:template> <xsl:template match="firstname" mode="book.titlepage.recto.mode"> <xsl:value-of select="." /><xsl:text> </xsl:text><xsl:value-of select="following-sibling::surname" /> </xsl:template> <xsl:template match="surname" mode="book.titlepage.recto.mode" /> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in +++ php-gtk/docs/stylesheets/xsl/html.xsl.in <!-- HTML specific stylesheet $Id: html.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwlash.com/xsl/documentation/1.0" version="1.0"> <xsl:import href="@DOCBOOKXSL_HTML@"/> <xsl:include href="chunk-filename.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> <xsl:output method="html" encoding="@ENCODING@"/> <!-- Parameters for Norman Walsh's Stylesheets to use --> <xsl:param name="toc.section.depth" doc:type="integer" doc:min="1" doc:max="2" /> <xsl:param name="generate.component.toc" select="1" /> <xsl:param name="generate.division.toc" select="1" /> <xsl:param name="default.table.width" select="100" /> <xsl:param name="base.dir" select="'html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/htmlhelp.xsl.in +++ php-gtk/docs/stylesheets/xsl/htmlhelp.xsl.in <!-- HTML Help specific stylesheet $Id: htmlhelp.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon" version="1.0"> <xsl:import href="@DOCBOOKXSL_HTMLHELP@"/> <xsl:import href="chunk-filename.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:output method="html" encoding="@HTMLHELP_ENCODING@" saxon:character-representation="native"/> <xsl:param name="base.dir" select="'html/'"/> <xsl:param name="use.id.as.filename" select="1"/> <xsl:param name="htmlhelp.encoding" select="'@HTMLHELP_ENCODING@'"/> <xsl:param name="html.encoding" select="'@HTMLHELP_ENCODING@'"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/print.xsl.in +++ php-gtk/docs/stylesheets/xsl/print.xsl.in <!-- Print specific stylesheet $Id: print.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="@DOCBOOKXSL_PRINT@"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/temp.xsl +++ php-gtk/docs/stylesheets/xsl/temp.xsl <xsl:template name="chunk"> <xsl:param name="node" select="."/> <!-- returns 1 if $node is a chunk --> <xsl:choose> <xsl:when test="name($node)='sect1' and count($node/preceding-sibling::sect1) > 0">1</xsl:when> <xsl:when test="name($node)='section' and count($node/parent::section) = 0 and count($node/preceding-sibling::section) > 0">1</xsl:when> <xsl:when test="name($node)='preface'">1</xsl:when> <xsl:when test="name($node)='chapter'">1</xsl:when> <xsl:when test="name($node)='appendix'">1</xsl:when> <xsl:when test="name($node)='article'">1</xsl:when> <xsl:when test="name($node)='part'">1</xsl:when> <xsl:when test="name($node)='reference'">1</xsl:when> <xsl:when test="name($node)='refentry'">1</xsl:when> <xsl:when test="name($node)='index' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='bibliography' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='glossary' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='colophon'">1</xsl:when> <xsl:when test="name($node)='book'">1</xsl:when> <xsl:when test="name($node)='set'">1</xsl:when> <xsl:when test="name($node)='setindex'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template>
Index: php-gtk/docs/Makefile.in diff -u php-gtk/docs/Makefile.in:1.4 php-gtk/docs/Makefile.in:1.5 --- php-gtk/docs/Makefile.in:1.4 Tue Mar 13 07:37:02 2001 +++ php-gtk/docs/Makefile.in Wed Mar 14 10:31:52 2001 @@ -17,7 +17,7 @@ # +----------------------------------------------------------------------+ # -# $Id: Makefile.in,v 1.4 2001/03/13 15:37:02 jmoore Exp $ +# $Id: Makefile.in,v 1.5 2001/03/14 18:31:52 jmoore Exp $ # VPATH=@srcdir@ @@ -29,27 +29,30 @@ CATALOG=@CATALOG@ VERSION="@PHP_VERSION@" -HTML_STYLESHEET=html.dsl -PRINT_STYLESHEET=print.dsl +DSSSL_HTML_STYLESHEET=stylesheets/dsssl/html.dsl +DSSSL_PRINT_STYLESHEET=stylesheets/dsssl/print.dsl +dsssl_stylesheet_dir=stylesheets/dsssl +xsl_stylesheet_dir=stylesheets/xsl +dsssl_srcdir=$(srcdir)/$(dsssl_stylesheet_dir) + +DSSSL_HTML_DEPS=$(DSSSL_HTML_STYLESHEET) \ + dsssl-html-common.dsl dsssl-common.dsl +DSSSl_PRINT_DEPS=$(DSSSL_PRINT_STYLESHEET) common.dsl -HTML_DEPS=$(HTML_STYLESHEET) html-common.dsl common.dsl -PRINT_DEPS=$(PRINT_STYLESHEET) common.dsl - PALMDOCTITLE=@PALMDOCTITLE@ all: html DIST_FILES=manual.zip manual.tar.gz bigmanual.html.gz \ manual_doc.pdb manual.txt.gz -MIRROR_TARGETS=php/index.php html/index.html $(DIST_FILES) -html.dsl: $(srcdir)/html.dsl.in ./config.status +html.dsl: $(dsssl_scdir)/html.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -print.dsl: $(srcdir)/print.dsl.in ./config.status +print.dsl: $(dsssl_srcdir)/print.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -common.dsl: $(srcdir)/common.dsl.in ./config.status +common.dsl: $(dsssl_srcdir)/common.dsl.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status manual.xml: $(srcdir)/manual.xml.in .manual.xml @@ -69,14 +72,12 @@ Makefile: $(srcdir)/Makefile.in ./config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status -mirror-files: $(MIRROR_TARGETS) - snapshot: manual-snapshot.tar.gz manual-snapshot.tar.gz: bigmanual.html html/index.html manual.rtf manual.txt tar -cvzf $@ bigmanual.html html/*.html manual.rtf manual.txt -bigmanual.html: manual.xml $(HTML_DEPS) +bigmanual.html: manual.xml $(DSSSL_HTML_DEPS) $(JADE) $(CATALOG) -V nochunks -d $(HTML_STYLESHEET) -t sgml $(srcdir)/phpdocxml.dcl manual.xml > $@ bigmanual.html.gz: bigmanual.html @@ -101,7 +102,7 @@ html/index.html: manual.xml $(HTML_DEPS) @test -d html || mkdir html - $(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(srcdir)/phpdocxml.dcl manual.xml + $(JADE) $(CATALOG) -d $(DSSSL_HTML_STYLESHEET) -V use-output-dir -t sgml $(srcdir)/phpdocxml.dcl manual.xml manual.txt: bigmanual.html lynx -nolist -dump file:`pwd`/bigmanual.html > manual.txt @@ -159,9 +160,10 @@ rm -f chapters.ent distclean: clean - rm -f Makefile html.dsl print.dsl \ - manual.xml common.dsl \ - html-locale.dsl version.ent \ - configure config.cache config.status \ - html.dsl print.dsl quickref.dsl html.xsl \ - bightml.xsl print.xsl htmlhelp.xsl common.xsl + rm -f Makefile manual.xml configure + rm -f config.cache config.status version.ent + cd stylesheets/dsssl; rm -f html.dsl print.dsl \ + common.dsl; rm -f html-locale.dsl html.dsl \ + print.dsl quickref.dsl + cd stylesheets/xsl; rm -f html.xsl bightml.xsl \ + print.xsl htmlhelp.xsl common.xsl Index: php-gtk/docs/configure.in diff -u php-gtk/docs/configure.in:1.4 php-gtk/docs/configure.in:1.5 --- php-gtk/docs/configure.in:1.4 Tue Mar 13 07:37:02 2001 +++ php-gtk/docs/configure.in Wed Mar 14 10:31:52 2001 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.4 2001/03/13 15:37:02 jmoore Exp $ +dnl $Id: configure.in,v 1.5 2001/03/14 18:31:52 jmoore Exp $ AC_INIT(global.ent) @@ -292,16 +292,16 @@ AC_OUTPUT(\ Makefile \ version.ent \ -common.dsl \ -html.dsl \ -html-locale.dsl \ -print.dsl \ manual.xml \ -html.xsl \ -bightml.xsl \ -print.xsl \ -common.xsl \ -htmlhelp.xsl) +stylesheets/dsssl/common.dsl \ +stylesheets/dsssl/html.dsl \ +stylesheets/dsssl/html-locale.dsl \ +stylesheets/dsssl/print.dsl \ +stylesheets/xsl/html.xsl \ +stylesheets/xsl/bightml.xsl \ +stylesheets/xsl/print.xsl \ +stylesheets/xsl/common.xsl \ +stylesheets/xsl/htmlhelp.xsl) dnl sanity checks for SuSE 6.x if test -e /usr/share/sgml/docbk30/docbook.dcl Index: php-gtk/docs/stylesheets/dsssl/common.dsl.in +++ php-gtk/docs/stylesheets/dsssl/common.dsl.in ;; -*- Scheme -*- ;; ;; $Id: common.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization common to the HTML ;; and print versions. ;; ;; Stylesheets Localization (define %default-language% "@LANG@") (define %root-filename% "index") (define %use-id-as-filename% #t) (define %gentext-nav-tblwidth% "100%") (define %refentry-function% #t) (define %refentry-generate-name% #f) (define %funcsynopsis-style% 'ansi) (define ($legalnotice-link-file$ legalnotice) (string-append "copyright" %html-ext%)) (define %generate-legalnotice-link% #t) (define %footnotes-at-end% #t) (define %force-chapter-toc% #t) (define newline "\U-000D") (define %number-programlisting-lines% #f) (define %linenumber-mod% 1) (define %shade-verbatim% #t) (define %prefers-ordinal-label-name-format% @NUMBER_FIRST@) (define ($generate-book-lot-list$) (list)) (define %gentext-ja-edited-by% "Edited by") (define (php-code code) (make processing-instruction data: (string-append "php " code "?"))) (define quicksort (quicksort::generic null? car cdr append cons '())) (define nl-quicksort (quicksort::generic node-list-empty? node-list-first node-list-rest node-list node-list (empty-node-list))) (define quicksort::generic (lambda(is-null? first others concat add empty) (letrec ((collect ;; Collect is an helper function doing the real work (lambda (pivot ls lgroup rgroup less?) (if (is-null? ls) (concat (impl lgroup less?) (add pivot (impl rgroup less?))) (if (less? pivot (first ls)) (collect pivot (others ls) lgroup (add (first ls) rgroup) less?) (collect pivot (others ls) (add (first ls) lgroup) rgroup less?))))) (impl ;; impl first test some trivial sorting case and then call ;; the procedure collect (lambda (ls less?) (if (or (is-null? ls) (is-null? (others ls))) ls (collect (first ls) (others ls) empty empty less?))))) ;; we return the new defined procedure impl))) Index: php-gtk/docs/stylesheets/dsssl/html-common.dsl +++ php-gtk/docs/stylesheets/dsssl/html-common.dsl ;; -*- Scheme -*- ;; ;; $Id: html-common.dsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; Returns the depth of the auto-generated TOC (table of contents) that ;; should be made at the nd-level (define (toc-depth nd) (if (string=? (gi nd) "book") 2 ; the depth of the top-level TOC 1 ; the depth of all other TOCs )) (element (funcdef function) ($bold-seq$ (make sequence (process-children) ) ) ) (define (is-true-optional nl) (and (equal? (gi (parent nl)) (normalize "parameter")) (equal? 0 (string-length (strip (data (preced nl))))) (equal? 0 (string-length (strip (data (follow nl))))) ) ) (define (has-true-optional nl) (is-true-optional (node-list-first-element (select-elements (descendants nl) (normalize "optional")) ) ) ) (define (count-true-optionals nl) (let loop ((result 0) (nl (select-elements (descendants nl) (normalize "optional"))) ) (if(node-list-empty? nl) result (if(is-true-optional(node-list-first nl)) (loop (+ result 1) (node-list-rest nl)) (loop result (node-list-rest nl)) ) ) ) ) ;; there are two different kinds of optionals ;; optional parameters and optional parameter parts ;; an optional parameter is identified by an optional tag ;; with a parameter tag as its parent ;; and only whitespace between them (element optional ;;check for true optional parameter (if (is-true-optional (current-node)) ;; yes - handle '[...]' in paramdef (process-children-trim) ;; no - do '[...]' output (make sequence (literal %arg-choice-opt-open-str%) (process-children-trim) (literal %arg-choice-opt-close-str%) ) ) ) (element (paramdef parameter) (make sequence font-posture: 'italic (process-children-trim) ) ) ;; now this is going to be tricky (element paramdef (make sequence ;; special treatment for first parameter in funcsynopsis (if (equal? (child-number (current-node)) 1) ;; is first ? (make sequence ;; start parameter list (literal " (") ;; is optional ? ( if (has-true-optional (current-node)) (literal %arg-choice-opt-open-str%) (empty-sosofo) ) ) ;; not first (empty-sosofo) ) ;; (process-children-trim) ;; special treatment for last parameter (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) ;; more parameters will follow (make sequence ;; next is optional ? ( if (has-true-optional (ifollow (current-node))) ;; optional (make sequence (literal " ") (literal %arg-choice-opt-open-str%) ) ;; not optional (empty-sosofo) ) (literal ", " ) ) ;; last parameter (make sequence (literal (let loop ((result "")(count (count-true-optionals (parent (current-node))))) (if (<= count 0) result (loop (string-append result %arg-choice-opt-close-str%)(- count 1)) ) ) ) ( literal ")" ) ) ) ) ) (element function (let* ((function-name (data (current-node))) (linkend (string-append "function." (string-replace function-name "_" "-"))) (target (element-with-id linkend)) (parent-gi (gi (parent)))) (cond ;; function names should be plain in FUNCDEF ((equal? parent-gi "funcdef") (process-children)) ;; if a valid ID for the target function is not found, or if the ;; FUNCTION tag is within the definition of the same function, ;; make it bold, add (), but don't make a link ((or (node-list-empty? target) (equal? (case-fold-down (data (node-list-first (select-elements (node-list-first (children (select-elements (children (ancestor-member (parent) (list "refentry"))) "refnamediv"))) "refname")))) function-name)) ($bold-seq$ (make sequence (process-children) (literal "()")))) ;; else make a link to the function and add () (else (make element gi: "A" attributes: (list (list "HREF" (href-to target))) ($bold-seq$ (make sequence (process-children) (literal ) (literal "()")))))))) (element example (make sequence (make element gi: "TABLE" attributes: (list (list "WIDTH" "100%") (list "BORDER" "0") (list "CELLPADDING" "0") (list "CELLSPACING" "0") (list "CLASS" "EXAMPLE")) (make element gi: "TR" (make element gi: "TD" ($formal-object$)))))) (mode book-titlepage-recto-mode (element authorgroup (process-children)) (element author (let ((author-name (author-string)) (author-affil (select-elements (children (current-node)) (normalize "affiliation")))) (make sequence (make element gi: "DIV" attributes: (list (list "CLASS" (gi))) (literal author-name)) (process-node-list author-affil)))) ) Index: php-gtk/docs/stylesheets/dsssl/html-locale.dsl.in +++ php-gtk/docs/stylesheets/dsssl/html-locale.dsl.in ;; -*- Scheme -*- ;; ;; $Id: html-locale.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization for locale specific ;; preferences in HTML version. ;; (define ($component-title$ #!optional (titlegi "H1") (subtitlegi "H2")) (let* ((info (cond ((equal? (gi) (normalize "appendix")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "chapter")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "reference")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make element gi: titlegi (make element gi: "A" attributes: (list (list "NAME" (element-id))) (if (and %chapter-autolabel% (or (equal? (gi) (normalize "chapter")) (equal? (gi) (normalize "appendix")))) (if %prefers-ordinal-label-name-format% (literal (element-label (current-node)) ". " (gentext-element-name (gi)) (gentext-label-title-sep (gi))) (literal (gentext-element-name-space (gi)) (element-label (current-node)) (gentext-label-title-sep (gi)))) (empty-sosofo)) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode title-mode (process-node-list titles))))) (if (node-list-empty? subtitles) (empty-sosofo) (with-mode subtitle-mode (make element gi: subtitlegi (process-node-list subtitles))))))) (define (nav-context-sosofo elemnode) (let* ((component (ancestor-member elemnode (append (book-element-list) (division-element-list) (component-element-list)))) (context-text (inherited-dbhtml-value elemnode "context-text"))) (if (and context-text (not (string=? context-text ""))) (literal context-text) (if (equal? (element-label component) "") (make sequence (element-title-sosofo component)) (make sequence ;; Special case. This is a bit of a hack. ;; I need to revisit this aspect of ;; appendixes. (if (and (equal? (gi component) (normalize "appendix")) (or (equal? (gi elemnode) (normalize "sect1")) (equal? (gi elemnode) (normalize "section"))) (equal? (gi (parent component)) (normalize "article"))) (empty-sosofo) (if %prefers-ordinal-label-name-format% (make sequence (element-label-sosofo component) (literal ". " (gentext-element-name (gi component)))) (make sequence (literal (gentext-element-name-space (gi component))) (element-label-sosofo component)))) (literal (gentext-label-title-sep (gi component))) (element-title-sosofo component)))))) (define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html; charset=@ENCODING@")))) Index: php-gtk/docs/stylesheets/dsssl/html.dsl.in +++ php-gtk/docs/stylesheets/dsssl/html.dsl.in <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY docbook.dsl SYSTEM "@DOCBOOK_HTML@" CDATA DSSSL> <!ENTITY html-common.dsl SYSTEM "@srcdir@/html-common.dsl"> <!ENTITY html-locale.dsl SYSTEM "html-locale.dsl"> <!ENTITY common.dsl SYSTEM "common.dsl"> ]> <!-- $Id: html.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ HTML-specific stylesheet customization. --> <style-sheet> <style-specification id="docbook-php-html" use="docbook"> <style-specification-body> (define %html-ext% ".html") (define %output-dir% "html") &html-common.dsl; &html-locale.dsl; &common.dsl; </style-specification-body> </style-specification> <external-specification id="docbook" document="docbook.dsl"> </style-sheet> Index: php-gtk/docs/stylesheets/dsssl/pdflevels.dsl +++ php-gtk/docs/stylesheets/dsssl/pdflevels.dsl ;; ;; $Id: pdflevels.dsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ ;; ;; This file contains stylesheet customization to get bookmark levels ;; right in PDF version of manual. ;; ;; borrowed from print/dbsect.dsl (define ($section-title$) (let* ((sect (current-node)) (info (info-element)) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children sect) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle"))) (renderas (inherited-attribute-string (normalize "renderas") sect)) (hlevel ;; the apparent section level; (if renderas ;; if not real section level, (string->number ;; then get the apparent level (substring renderas 4 5)) ;; from "renderas", (SECTLEVEL))) ;; else use the real level (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: (if (node-list-empty? subtitles) (* hs %head-after-factor%) 0pt) start-indent: (if (or (>= hlevel 3) (member (gi) (list (normalize "refsynopsisdiv") (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 2) 0) ;; SimpleSects are never AUTO numbered...they aren't hierarchical (if (string=? (element-label (current-node)) "") (empty-sosofo) (literal (element-label (current-node)) (gentext-label-title-sep (gi sect)))) (element-title-sosofo (current-node))) (with-mode section-title-mode (process-node-list subtitles)) ($section-info$ info)))) ;; borrowed from print/dbcompon.dsl (define ($sub-component$) (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 ($sub-component-title$) (process-children)) (make-endnotes))) (define ($sub-component-title$) (let* ((info (cond ((equal? (gi) (normalize "appendix")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "chapter")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "reference")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (partintro (select-elements (children (current-node)) (normalize "partintro"))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: (HSIZE 4) line-spacing: (* (HSIZE 4) %line-spacing-factor%) space-before: (* (HSIZE 4) %head-before-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-title-quadding% heading-level: (if %generate-heading-level% 2 0) keep-with-next?: #t (if (string=? (element-label) "") (empty-sosofo) (literal ;; (gentext-element-name-space (current-node)) (if (equal? (gi) (normalize "reference")) "" (gentext-element-name-space (current-node))) (element-label) (gentext-label-title-sep (gi)))) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode component-title-mode (make sequence (process-node-list titles))))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-posture: 'italic font-size: (HSIZE 3) line-spacing: (* (HSIZE 3) %line-spacing-factor%) space-before: (* 0.5 (* (HSIZE 3) %head-before-factor%)) space-after: (* (HSIZE 4) %head-after-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-subtitle-quadding% keep-with-next?: #t (with-mode sub-component-title-mode (make sequence (process-node-list subtitles))) (make sequence ($process-partintro$ partintro #t) (empty-sosofo)))))) (mode sub-component-title-mode (element title (process-children)) (element subtitle (process-children)) ) (define ($component-title$) (let* ((info (cond ;; ((equal? (gi) (normalize "appendix")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "article")) (select-elements (children (current-node)) (normalize "artheader"))) ((equal? (gi) (normalize "bibliography")) (select-elements (children (current-node)) (normalize "docinfo"))) ;; ((equal? (gi) (normalize "chapter")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "dedication")) (empty-node-list)) ((equal? (gi) (normalize "glossary")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "index")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "part")) (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "preface")) (select-elements (children (current-node)) (normalize "docinfo"))) ;; ((equal? (gi) (normalize "reference")) ;; (select-elements (children (current-node)) (normalize "docinfo"))) ((equal? (gi) (normalize "setindex")) (select-elements (children (current-node)) (normalize "docinfo"))) (else (empty-node-list)))) (exp-children (if (node-list-empty? info) (empty-node-list) (expand-children (children info) (list (normalize "bookbiblio") (normalize "bibliomisc") (normalize "biblioset"))))) (parent-titles (select-elements (children (current-node)) (normalize "title"))) (info-titles (select-elements exp-children (normalize "title"))) (titles (if (node-list-empty? parent-titles) info-titles parent-titles)) (subtitles (select-elements exp-children (normalize "subtitle")))) (make sequence (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: (* (HSIZE 4) 1.25) line-spacing: (* (HSIZE 4) %line-spacing-factor%) space-before: (* (HSIZE 4) %head-before-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-title-quadding% heading-level: (if %generate-heading-level% 1 0) keep-with-next?: #f (if (string=? (element-label) "") (empty-sosofo) (literal (gentext-element-name-space (current-node)) (element-label) (gentext-label-title-sep (gi)))) (if (node-list-empty? titles) (element-title-sosofo) ;; get a default! (with-mode component-title-mode (make sequence (process-node-list titles))))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-posture: 'italic font-size: (HSIZE 3) line-spacing: (* (HSIZE 3) %line-spacing-factor%) space-before: (* 0.5 (* (HSIZE 3) %head-before-factor%)) space-after: (* (HSIZE 4) %head-after-factor%) start-indent: 0pt first-line-start-indent: 0pt quadding: %component-subtitle-quadding% keep-with-next?: #f (with-mode component-title-mode (make sequence (process-node-list subtitles))))))) ;; own code (element part ($component$)) (element (part title) (empty-sosofo)) (element chapter ($sub-component$)) (element (chapter title) (empty-sosofo)) (element reference ($sub-component$)) (element (reference title) (empty-sosofo)) (element appendix ($sub-component$)) (element (appendix title) (empty-sosofo)) (define %generate-part-titlepage% #t) (define %generate-chapter-titlepage% #t) (define %generate-reference-titlepage% #t) (define %generate-partintro-on-titlepage% #t) Index: php-gtk/docs/stylesheets/dsssl/print.dsl.in +++ php-gtk/docs/stylesheets/dsssl/print.dsl.in <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY docbook.dsl SYSTEM "@DOCBOOK_PRINT@" CDATA DSSSL> <!ENTITY common.dsl SYSTEM "common.dsl"> <!ENTITY pdflevels.dsl SYSTEM "pdflevels.dsl"> <!ENTITY version.dsl SYSTEM "@srcdir@/version.dsl"> ]> <!-- $Id: print.dsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ This file contains printout-specific stylesheet customization. --> <style-sheet> <style-specification id="local-php-print" use="docbook"> <style-specification-body> <!-- override default setting for some output parameters (defaults are defined in /usr/share/sgml/docbkdsl/print/dbparam.dsl) --> (define %paper-type% "@PAPER_TYPE@") @LEFT_MARGIN@ @RIGHT_MARGIN@ @TOP_MARGIN@ @HEADER_MARGIN@ @FOOTER_MARGIN@ @BOTTOM_MARGIN@ @LINE_SPACING@ @HEAD_BEFORE@ @HEAD_AFTER@ @BODY_START@ @BLOCK_SEP@ &version.dsl; &pdflevels.dsl; (define ($refentry-title$) (let* ((refmeta (select-elements (children (current-node)) (normalize "refmeta"))) (refentrytitle (select-elements (children refmeta) (normalize "refentrytitle"))) (refnamediv (select-elements (children (current-node)) (normalize "refnamediv"))) (refdescriptor (select-elements (children refnamediv) (normalize "refdescriptor"))) (refname (select-elements (children refnamediv) (normalize "refname"))) (title (if (node-list-empty? refentrytitle) (if (node-list-empty? refdescriptor) (node-list-first refname) refdescriptor) refentrytitle)) (slevel (SECTLEVEL)) ;; the true level in the section hierarchy (hlevel (if (> slevel 2) 2 slevel)) ;; limit to sect2 equiv. (hs (HSIZE (- 4 hlevel)))) (make paragraph font-family-name: %title-font-family% font-weight: 'bold font-size: hs line-spacing: (* hs %line-spacing-factor%) space-before: (* hs %head-before-factor%) space-after: (* hs %head-after-factor%) start-indent: %body-start-indent% first-line-start-indent: (- %body-start-indent%) quadding: 'start heading-level: (if %generate-heading-level% 3 0) keep-with-next?: #t (make sequence (process-node-list (children title)) (make sequence font-weight: 'light font-size: (* 0.5 (inherited-font-size)) font-posture: 'italic (literal " (") (version-info title) (literal ")") ) ) ) ) ) (element refentry (make display-group keep: %refentry-keep% (if (or %refentry-new-page% (node-list=? (current-node) (sgml-root-element))) (make simple-page-sequence page-n-columns: %page-n-columns% 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$) input-whitespace-treatment: 'collapse quadding: %default-quadding% ($refentry-title$) (process-children)) (make sequence ($refentry-title$) ($block-container$))) (make-endnotes))) (element refname (make sequence (if (and %refentry-generate-name% (first-sibling? (current-node))) ($lowtitlewithsosofo$ 1 (literal (gentext-element-name (current-node)))) (empty-sosofo)) ) ) (element refsect1 (if (node-list=? (current-node) (sgml-root-element)) (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 (process-children))) (make display-group space-before: %block-sep% space-after: 0in start-indent: %body-start-indent% (make sequence (process-children))))) (element (funcdef function) ($bold-seq$ (make sequence (process-children) ) ) ) (element refpurpose (make sequence font-family-name: %body-font-family% (make sequence (process-children)) )) (element funcsynopsis (let* ((width-in-chars (if (attribute-string "width") (string->number (attribute-string "width")) %verbatim-default-width%)) (fsize (lambda () (if (or (attribute-string (normalize "width")) (not %verbatim-size-factor%)) (/ (/ (- %text-width% (inherited-start-indent)) width-in-chars) 0.7) (* (inherited-font-size) %verbatim-size-factor%))))) ;; This used to be a sequence, but that caused the start-indent to be ;; wrong when it was the first element of a RefSect. Making it a ;; paragraph makes the bug go away and doesn't seem to have any ill ;; effects. Need to investigate further... (make paragraph font-family-name: %mono-font-family% font-size: (fsize) font-weight: 'medium font-posture: 'upright line-spacing: (* (fsize) %line-spacing-factor%) ($informal-object$)))) ;; there are two different kinds of optionals ;; optional parameters and optional parameter parts ;; an optional parameter is identified by an optional tag ;; with a parameter tag as its parent ;; and only whitespace between them (define (is-true-optional nl) (and (equal? (gi (parent nl)) (normalize "parameter")) (equal? 0 (string-length (strip (data (preced nl))))) (equal? 0 (string-length (strip (data (follow nl))))) ) ) (define (has-true-optional nl) (is-true-optional (node-list-first-element (select-elements (descendants nl) (normalize "optional")) ) ) ) (define (count-true-optionals nl) (let loop ((result 0) (nl (select-elements (descendants nl) (normalize "optional"))) ) (if(node-list-empty? nl) result (if(is-true-optional(node-list-first nl)) (loop (+ result 1) (node-list-rest nl)) (loop result (node-list-rest nl)) ) ) ) ) (element optional ;;check for true optional parameter (if (is-true-optional (current-node)) ;; yes - handle '[...]' in paramdef (process-children-trim) ;; no - do '[...]' output (make sequence (literal %arg-choice-opt-open-str%) (process-children-trim) (literal %arg-choice-opt-close-str%) ) ) ) (element (paramdef parameter) (make sequence font-posture: 'italic (process-children-trim) ) ) ;; now this is going to be tricky (element paramdef (make sequence ;; special treatment for first parameter in funcsynopsis (if (equal? (child-number (current-node)) 1) ;; is first ? (make sequence ;; start parameter list (literal " (") ;; is optional ? ( if (has-true-optional (current-node)) (literal %arg-choice-opt-open-str%) (empty-sosofo) ) ) ;; not first (empty-sosofo) ) ;; (process-children-trim) ;; special treatment for last parameter (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) ;; more parameters will follow (make sequence ;; next is optional ? ( if (has-true-optional (ifollow (current-node))) ;; optional (make sequence (literal " ") (literal %arg-choice-opt-open-str%) ) ;; not optional (empty-sosofo) ) (literal ", " ) ) ;; last parameter (make sequence (literal (let loop ((result "")(count (count-true-optionals (parent (current-node))))) (if (<= count 0) result (loop (string-append result %arg-choice-opt-close-str%)(- count 1)) ) ) ) ( literal ")" ) ) ) ) ) (element function (cond ;; function names should be plain in FUNCDEF ((equal? (gi (parent)) "funcdef") (process-children)) ;; else make the function name bold and add "()" ;; we should add some cross-reference here later (else ($bold-seq$ (make sequence (process-children) (literal "()")))))) &common.dsl; </style-specification-body> </style-specification> <external-specification id="docbook" document="docbook.dsl"> </style-sheet> Index: php-gtk/docs/stylesheets/xsl/bightml.xsl.in +++ php-gtk/docs/stylesheets/xsl/bightml.xsl.in <!-- HTML specific stylesheet $Id: bightml.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="@DOCBOOKXSL_BIGHTML@"/> <xsl:include href="html-common.xsl"/> <xsl:output method="html" encoding="@ENCODING@"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/chunk-filename.xsl +++ php-gtk/docs/stylesheets/xsl/chunk-filename.xsl <!-- This templates takes filename from id attribute if present. In the future, something like this will be standard part of stylesheets. $Id: chunk-filename.xsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- <xsl:param name="use.id.as.filename" select="1"/> --> <xsl:template match="*" mode="chunk-filename"> <xsl:param name="recursive" select="false()"/> <!-- returns the filename of a chunk --> <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable> <xsl:variable name="filename"> <xsl:call-template name="dbhtml-filename"/> </xsl:variable> <xsl:variable name="dir"> <xsl:call-template name="dbhtml-dir"/> </xsl:variable> <xsl:choose> <xsl:when test="$ischunk='0'"> <!-- if called on something that isn't a chunk, walk up... --> <xsl:choose> <xsl:when test="count(parent::*)>0"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="$recursive"/> </xsl:apply-templates> </xsl:when> <!-- unless there is no up, in which case return "" --> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="not($recursive) and $filename != ''"> <!-- if this chunk has an explicit name, use it --> <xsl:if test="$dir != ''"> <xsl:value-of select="$dir"/> <xsl:text>/</xsl:text> </xsl:if> <xsl:value-of select="$filename"/> </xsl:when> <xsl:when test="not($recursive) and @id != '' and $use.id.as.filename=1 and name(.) != 'book'"> <!-- if this chunk has an explicit name in id attribute, use it --> <xsl:if test="$dir != ''"> <xsl:value-of select="$dir"/> <xsl:text>/</xsl:text> </xsl:if> <xsl:value-of select="@id"/> <xsl:value-of select="$html.ext"/> </xsl:when> <xsl:when test="name(.)='set'"> <xsl:value-of select="$root.filename"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='book'"> <xsl:choose> <xsl:when test="count(parent::*)>0"> <xsl:text>bk</xsl:text> <xsl:number level="any" format="01"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$root.filename"/> </xsl:otherwise> </xsl:choose> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='article'"> <xsl:choose> <xsl:when test="/set"> <!-- in a set, make sure we inherit the right book info... --> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:when> <xsl:when test="count(parent::*)>0"> <!-- if we aren't the root, name them numerically ... --> <xsl:text>ar</xsl:text> <xsl:number level="any" format="01" from="book"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$root.filename"/> </xsl:otherwise> </xsl:choose> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='preface'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>pr</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='chapter'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ch</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='appendix'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ap</xsl:text> <xsl:number level="any" format="a" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='legalnotice'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="false()" /> </xsl:apply-templates> </xsl:if> <xsl:text>asdasdasdln</xsl:text> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext" /> </xsl:if> </xsl:when> <xsl:when test="name(.)='part'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>pt</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='reference'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>rn</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='refentry'"> <xsl:if test="parent::reference"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>re</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='colophon'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>co</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='sect1' or name(.)='section'"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> <xsl:text>s</xsl:text> <xsl:number level="any" format="01" from="preface|chapter|appendix"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='bibliography'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>bi</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='glossary'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>go</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='index'"> <xsl:if test="/set"> <xsl:apply-templates mode="chunk-filename" select="parent::*"> <xsl:with-param name="recursive" select="true()"/> </xsl:apply-templates> </xsl:if> <xsl:text>ix</xsl:text> <xsl:number level="any" format="01" from="book"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:when test="name(.)='setindex'"> <xsl:text>si</xsl:text> <xsl:number level="any" format="01" from="set"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:text>chunk-filename-error-</xsl:text> <xsl:value-of select="name(.)"/> <xsl:number level="any" format="01" from="set"/> <xsl:if test="not($recursive)"> <xsl:value-of select="$html.ext"/> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="chunk"> <xsl:param name="node" select="."/> <!-- returns 1 if $node is a chunk --> <xsl:choose> <xsl:when test="name($node)='sect1' and count($node/preceding-sibling::sect1) > 0">1</xsl:when> <xsl:when test="name($node)='section' and count($node/parent::section) = 0 and count($node/preceding-sibling::section) > 0">1</xsl:when> <xsl:when test="name($node)='preface'">1</xsl:when> <xsl:when test="name($node)='chapter'">1</xsl:when> <xsl:when test="name($node)='appendix'">1</xsl:when> <xsl:when test="name($node)='article'">1</xsl:when> <xsl:when test="name($node)='part'">1</xsl:when> <xsl:when test="name($node)='reference'">1</xsl:when> <xsl:when test="name($node)='refentry'">1</xsl:when> <xsl:when test="name($node)='index' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='bibliography' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='glossary' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='colophon'">1</xsl:when> <xsl:when test="name($node)='book'">1</xsl:when> <xsl:when test="name($node)='set'">1</xsl:when> <xsl:when test="name($node)='setindex'">1</xsl:when> <xsl:when test="name($node)='legalnotice'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="legalnotice" mode="book.titlepage.recto.mode"> <xsl:call-template name="process-chunk-element" /> </xsl:template> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/common.xsl.in +++ php-gtk/docs/stylesheets/xsl/common.xsl.in <!-- Implements Common Named Templates $Id: common.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="authorgroup-title"> <xsl:param name="id"></xsl:param> <xsl:choose> <xsl:when test="$id='phpgtk.authors'"> <xsl:text>PHP-GTK Authors</xsl:text> </xsl:when> <xsl:when test="$id='phpgtk.contributors'"> <xsl:text>PHP-GTK Contributors</xsl:text> </xsl:when> <xsl:when test="$id='phpgtk.manual.contributors'"> <xsl:text>PHP-GTK Manual Contributors</xsl:text> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="author-email-link"> <xsl:if test="name(.)='author' or name(.)='editor'"> <xsl:text>mailto:</xsl:text><xsl:value-of select="./authoremail" /> </xsl:if> </xsl:template> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html-common.xsl +++ php-gtk/docs/stylesheets/xsl/html-common.xsl <!-- Implements HTML Specific Stylesheets $Id: html-common.xsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="authorgroup" mode="book.titlepage.recto.mode"> <h3> <xsl:call-template name="authorgroup-title"> <xsl:with-param name="id"> <xsl:value-of select="@id" /> </xsl:with-param> </xsl:call-template> </h3> <xsl:apply-templates mode="book.titlepage.recto.mode" /> </xsl:template> <xsl:template match="author" mode="book.titlepage.recto.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:call-template name="editor-author-text" /> </div> </xsl:template> <xsl:template match="author/contrib" mode="book.titlepage.recto.mode"> <xsl:text> : </xsl:text><xsl:apply-templates mode="book.title.recto.mode" /> </xsl:template> <xsl:template name="editor-author-text" > <xsl:element name="A"> <xsl:attribute name="HREF"> <xsl:call-template name="author-email-link" /> </xsl:attribute> <xsl:apply-templates select="honorific|firstname|othername|surname|lineage" mode="book.titlepage.recto.mode" /> </xsl:element> <xsl:apply-templates select="affiliation|authorblurb|contrib" mode="book.titlepage.recto.mode" /> </xsl:template> <xsl:template match="editor" mode="book.titlepage.recto.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:element name="h4"> <xsl:attribute name="class">editedby</xsl:attribute> <xsl:text>Edited by</xsl:text> </xsl:element> <xsl:element name="h3"> <xsl:attribute name="class"> <xsl:value-of select="name(.)" /> </xsl:attribute> <xsl:call-template name="editor-author-text" /> </xsl:element> </div> </xsl:template> <xsl:template match="firstname" mode="book.titlepage.recto.mode"> <xsl:value-of select="." /><xsl:text> </xsl:text><xsl:value-of select="following-sibling::surname" /> </xsl:template> <xsl:template match="surname" mode="book.titlepage.recto.mode" /> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in +++ php-gtk/docs/stylesheets/xsl/html.xsl.in <!-- HTML specific stylesheet $Id: html.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwlash.com/xsl/documentation/1.0" version="1.0"> <xsl:import href="@DOCBOOKXSL_HTML@"/> <xsl:include href="chunk-filename.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> <xsl:output method="html" encoding="@ENCODING@"/> <!-- Parameters for Norman Walsh's Stylesheets to use --> <xsl:param name="toc.section.depth" doc:type="integer" doc:min="1" doc:max="2" /> <xsl:param name="generate.component.toc" select="1" /> <xsl:param name="generate.division.toc" select="1" /> <xsl:param name="default.table.width" select="100" /> <xsl:param name="base.dir" select="'html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/htmlhelp.xsl.in +++ php-gtk/docs/stylesheets/xsl/htmlhelp.xsl.in <!-- HTML Help specific stylesheet $Id: htmlhelp.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon" version="1.0"> <xsl:import href="@DOCBOOKXSL_HTMLHELP@"/> <xsl:import href="chunk-filename.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:output method="html" encoding="@HTMLHELP_ENCODING@" saxon:character-representation="native"/> <xsl:param name="base.dir" select="'html/'"/> <xsl:param name="use.id.as.filename" select="1"/> <xsl:param name="htmlhelp.encoding" select="'@HTMLHELP_ENCODING@'"/> <xsl:param name="html.encoding" select="'@HTMLHELP_ENCODING@'"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/print.xsl.in +++ php-gtk/docs/stylesheets/xsl/print.xsl.in <!-- Print specific stylesheet $Id: print.xsl.in,v 1.1 2001/03/14 18:31:53 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="@DOCBOOKXSL_PRINT@"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/temp.xsl +++ php-gtk/docs/stylesheets/xsl/temp.xsl <xsl:template name="chunk"> <xsl:param name="node" select="."/> <!-- returns 1 if $node is a chunk --> <xsl:choose> <xsl:when test="name($node)='sect1' and count($node/preceding-sibling::sect1) > 0">1</xsl:when> <xsl:when test="name($node)='section' and count($node/parent::section) = 0 and count($node/preceding-sibling::section) > 0">1</xsl:when> <xsl:when test="name($node)='preface'">1</xsl:when> <xsl:when test="name($node)='chapter'">1</xsl:when> <xsl:when test="name($node)='appendix'">1</xsl:when> <xsl:when test="name($node)='article'">1</xsl:when> <xsl:when test="name($node)='part'">1</xsl:when> <xsl:when test="name($node)='reference'">1</xsl:when> <xsl:when test="name($node)='refentry'">1</xsl:when> <xsl:when test="name($node)='index' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='bibliography' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='glossary' and (name($node/parent::*) = 'article' or name($node/parent::*) = 'book')">1</xsl:when> <xsl:when test="name($node)='colophon'">1</xsl:when> <xsl:when test="name($node)='book'">1</xsl:when> <xsl:when test="name($node)='set'">1</xsl:when> <xsl:when test="name($node)='setindex'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template>