From a31031402b1056122bb37a540ad49c647b482f83 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 11 May 2005 11:48:13 +0000 Subject: [PATCH] initial add --- .../tabular-toc/examples/book/html/book.css | 82 ++++++ .../examples/website/html/website.css | 82 ++++++ .../tabular-toc/examples/website/xml/Makefile | 165 ++++++++++++ .../examples/website/xml/book/book.001.xml | 252 ++++++++++++++++++ .../examples/website/xml/depends.tabular | 29 ++ 5 files changed, 610 insertions(+) create mode 100644 contrib/xsl/tabular-toc/examples/book/html/book.css create mode 100644 contrib/xsl/tabular-toc/examples/website/html/website.css create mode 100644 contrib/xsl/tabular-toc/examples/website/xml/Makefile create mode 100644 contrib/xsl/tabular-toc/examples/website/xml/book/book.001.xml create mode 100644 contrib/xsl/tabular-toc/examples/website/xml/depends.tabular diff --git a/contrib/xsl/tabular-toc/examples/book/html/book.css b/contrib/xsl/tabular-toc/examples/book/html/book.css new file mode 100644 index 000000000..92158ae12 --- /dev/null +++ b/contrib/xsl/tabular-toc/examples/book/html/book.css @@ -0,0 +1,82 @@ +.skiplink {display:none} + +body { + } + +.navhomehead { padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; + font-size: 80% + } + +.navhomehead { color: black; } +.navhomehead a:link { color: black; } +.navhomehead a:visited { color: black; } + +.navhead { padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; + font-size: 80% + } + +.navhead { color: black; } +.navhead a:link { color: black; } +.navhead a:visited { color: black; } + +.navfoot { color: black; + font-size: 70%; + } + +.navfoot a:link { color: black; } +.navfoot a:visited { color: black; } + +pre.programlisting { font-size: 80%; + } + +span.footdate { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.foothome { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.footfeed { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.footcopy { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +SPAN.curpage { color: yellow; + font-style: italic; } +SPAN.curpage A { color: white; } +SPAN.curpage A:link { color: white; } +SPAN.curpage A:visited { color: white; } + +SPAN.toplevel A { color: white; } +SPAN.toplevel A:link { color: white; } +SPAN.toplevel A:visited { color: white; } + +SPAN.otherpage { color: white; } +SPAN.otherpage A { color: white; } +SPAN.otherpage A:link { color: white; } +SPAN.otherpage A:visited { color: white; } + +SPAN.descendant A { color: white; } +SPAN.descendant A:link { color: white; } +SPAN.descendant A:visited { color: white; } + +SPAN.ancestor A { color: white; } +SPAN.ancestor A:link { color: white; } +SPAN.ancestor A:visited { color: white; } + +SPAN.shrink1 { font-size: 80%; } +SPAN.shrink2 { font-size: 70%; } +SPAN.shrink3 { font-size: 70%; } + diff --git a/contrib/xsl/tabular-toc/examples/website/html/website.css b/contrib/xsl/tabular-toc/examples/website/html/website.css new file mode 100644 index 000000000..92158ae12 --- /dev/null +++ b/contrib/xsl/tabular-toc/examples/website/html/website.css @@ -0,0 +1,82 @@ +.skiplink {display:none} + +body { + } + +.navhomehead { padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; + font-size: 80% + } + +.navhomehead { color: black; } +.navhomehead a:link { color: black; } +.navhomehead a:visited { color: black; } + +.navhead { padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; + font-size: 80% + } + +.navhead { color: black; } +.navhead a:link { color: black; } +.navhead a:visited { color: black; } + +.navfoot { color: black; + font-size: 70%; + } + +.navfoot a:link { color: black; } +.navfoot a:visited { color: black; } + +pre.programlisting { font-size: 80%; + } + +span.footdate { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.foothome { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.footfeed { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +span.footcopy { color: black; + font-size: 70%; + font-family: Arial, sans-serif; + } + +SPAN.curpage { color: yellow; + font-style: italic; } +SPAN.curpage A { color: white; } +SPAN.curpage A:link { color: white; } +SPAN.curpage A:visited { color: white; } + +SPAN.toplevel A { color: white; } +SPAN.toplevel A:link { color: white; } +SPAN.toplevel A:visited { color: white; } + +SPAN.otherpage { color: white; } +SPAN.otherpage A { color: white; } +SPAN.otherpage A:link { color: white; } +SPAN.otherpage A:visited { color: white; } + +SPAN.descendant A { color: white; } +SPAN.descendant A:link { color: white; } +SPAN.descendant A:visited { color: white; } + +SPAN.ancestor A { color: white; } +SPAN.ancestor A:link { color: white; } +SPAN.ancestor A:visited { color: white; } + +SPAN.shrink1 { font-size: 80%; } +SPAN.shrink2 { font-size: 70%; } +SPAN.shrink3 { font-size: 70%; } + diff --git a/contrib/xsl/tabular-toc/examples/website/xml/Makefile b/contrib/xsl/tabular-toc/examples/website/xml/Makefile new file mode 100644 index 000000000..e8ea17ec5 --- /dev/null +++ b/contrib/xsl/tabular-toc/examples/website/xml/Makefile @@ -0,0 +1,165 @@ +# +# build a website out of dictionaries +TOPDIR := $(shell /bin/pwd) + +XMLFILES =coverpage.xml + +SUBDIRS =ddl1 ddl2 ddl3 databases + +TOOLDIR = $(TOPDIR)/tools + +BASEDIR := $(TOPDIR)/html/ + +CATALOGS=XML_CATALOG_FILES=$(TOPDIR)/catalog.xml +ENV=$(CATALOGS) + +PROC=xsltproc --nonet --novalid + +MAKEDEPENDSTYLE=../../../xsl/html/website-makefile-dep.xsl + + + +export TOPDIR TOOLDIR ENV PROC STYLEDIR BASEDIR MAKEDEPENDSTYLE + +all: do-it-all + +# +# Make "config" the default target if there is no configuration file or +# "depend" the target if there is no top-level dependency information. +# +DEPENDFILE=depends.tabular + +ifeq ($(DEPENDFILE),$(wildcard $(DEPENDFILE))) +include $(DEPENDFILE) +do-it-all: website +else +CONFIGURATION = depend +do-it-all: depend +endif + + +depend dep: depends + + +TOPRELDIR =# +CURRENTDIR =# + + +# +# Dependency rules +# + +depends: $(TOPDIR)/autolayout.xml + rm -f $(DEPENDFILE) + $(ENV) $(PROC) --xinclude \ + --output $(DEPENDFILE) \ + --stringparam output-root "$(TOPRELDIR)../html" \ + --stringparam html.ext ".html" \ + $(MAKEDEPENDSTYLE) \ + $< + +# --stringparam source-dir "$(CURRENTDIR)" + + +olinks: websiteolinks + +websiteolinks: thespec/olinkdb.xml + +# +# A general rule to make olink database supplements from .dbk XMLfiles +# +# + +%olinkdb.xml: + RELATIVE="$(subst //,/,$(subst $(space),/,$(patsubst %,..$(space), $(patsubst .$(space),,$(subst /,$(space),$(dir $(strip $(filter-out autolayout.xml,$^))))))))" ; \ + $(ENV) $(PROC) --xinclude \ + --stringparam collect.xref.targets "only" \ + --stringparam targets.filename "$@" \ + --stringparam base.dir "../html/" \ + --stringparam autolayout-file "$${RELATIVE}autolayout.xml" \ + --stringparam website.database.document "$${RELATIVE}website.database.xml" \ + --stringparam target.database.document "$${RELATIVE}olinkdb.xml" \ + --stringparam chunker.output.encoding "iso-8859-1" \ + --stringparam html.stylesheet "$${RELATIVE}ontology.css" \ + --stringparam html.stylesheet.type "text/css" \ + --stringparam textdata.default.encoding "iso-8859-1" \ + --stringparam chunker.output.method "html" \ + --stringparam chunker.output.omit-xml-declaration "no" \ + --stringparam chunker.output.indent "yes" \ + --param variablelist.as.table 1 \ + --param phrase.propagates.style 1 \ + --param use.id.as.filename 1 \ + --param sequential.links 1 \ + --param chunk.section.depth -1 \ + --param chunk.first.sections 1 \ + --param toc.expand.depth 2 \ + --param website 1 \ + --param tabular 1 \ + ../xsl/custom.xsl \ + $(filter-out autolayout.xml,$^) + + +# Here autolayout.xml is hand crafted and encapsulates (using --xinclude) +# the disparate autolayout.xml files in the dictionary directories +# +# +# first time: create empty file: depends.tabular +# run: make depends +# +# thereafter: run: make +# + + +# +# A general rule. The specific rules are in the $(DEPENDFILE) file. +# First convert the relative path down to the sourcefile into a +# relative path back up to the root, in a crude manner. +# It only works if there is one target dependency besides autolayout.xml +# + +empty:= +space:= $(empty) $(empty) + +%.html: autolayout.xml + RELATIVE="$(subst //,/,$(subst $(space),/,$(patsubst %,..$(space), $(patsubst .$(space),,$(subst /,$(space),$(dir $(strip $(filter-out autolayout.xml,$^))))))))" ; \ + $(ENV) $(PROC) --xinclude \ + --stringparam base.dir "../html/" \ + --stringparam autolayout-file "$${RELATIVE}autolayout.xml" \ + --stringparam target.database.document "$${RELATIVE}olinkdb.xml" \ + --stringparam chunker.output.encoding "iso-8859-1" \ + --stringparam html.stylesheet "$${RELATIVE}website.css" \ + --stringparam html.stylesheet.type "text/css" \ + --stringparam textdata.default.encoding "iso-8859-1" \ + --stringparam chunker.output.method "html" \ + --stringparam chunker.output.omit-xml-declaration "no" \ + --stringparam chunker.output.indent "yes" \ + --stringparam current.docid "symmetry" \ + --stringparam admon.graphics.extension ".png" \ + --stringparam admon.graphics "1" \ + --stringparam admon.graphics.path "graphics/" \ + --param olink.debug 1 \ + --param variablelist.as.table 1 \ + --param use.id.as.filename 1 \ + --param sequential.links 1 \ + --param chunk.section.depth 99 \ + --param chunk.first.sections 1 \ + --param website 1 \ + --param tabular 1 \ + ../xsl/custom.xsl \ + $(filter-out autolayout.xml,$^) + if [ -f $(shell dirname $@ )/Makefile ] ; then \ + cd $(shell dirname $@ ) && ${MAKE} ; fi + + +# This selects the target output file. +# --output $@ +# Unfortunately then chunked output goes to $@/$base.dir +# so don't do that. +# +# --stringparam target.database.document "$${RELATIVE}olinkdb.xml" \ +# --stringparam bibliography.collection "$${RELATIVE}biblio.collection.xml" \ +# --param toc.expand.depth 2 \ +# + +.PHONY : clean + diff --git a/contrib/xsl/tabular-toc/examples/website/xml/book/book.001.xml b/contrib/xsl/tabular-toc/examples/website/xml/book/book.001.xml new file mode 100644 index 000000000..fae71cdfc --- /dev/null +++ b/contrib/xsl/tabular-toc/examples/website/xml/book/book.001.xml @@ -0,0 +1,252 @@ + +Blah blah blah blah. Blah blah blah blah. Blah blah blah blah. +"> +]> + + +Unit Test: book.001 +$Id$ + +SomeCorp +NormanWalsh +
ndw@nwalsh.com
+
+JaneDoe +
+ + +Some legal notice. Some legal notice. Some legal notice. +Some legal notice. Some legal notice. Some legal notice. + + + +1998 +1999 +2000 +2001 +2002 +Norman Walsh + +18 January 2002 + +Some abstract. Some abstract. Some abstract. Some abstract. + +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. + + + + +1.1 +18 Jan 2002 +ndw +Reworked. + + +1.0 +20 Nov 1998 +ndw +Some remark about the revision + + +0.9 +19 Nov 1998 +ndw +Some remark about the revision + + +0.4 +18 Nov 1998 +ndw +Some remark about the revision + + +
+ +First Dedication + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + + + + + +A second dedication without a title. + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + + + +Foreword + +A preface. + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + + + +Preface + +Another preface. + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + + + + +Part One Title + +PartIntro Title + +Partintro content +This is a footnote in a partintro. +. + +&blah; &blah; &blah; &blah; &blah; + + +PartIntro Section +PartIntros can actually have section content as well. +&blah; &blah; &blah; &blah; &blah; + + + + +First Chapter +F. Chap + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
First Section +F. Sect + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Second Section +S. Sect + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Third Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
+ +Second Chapter + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
First Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Second Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Third Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
+ +Third Chapter + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + + + +
+Appendixes + +First Appendix + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
First Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Second Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Third Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
+ +Second Appendix + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
First Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Second Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
Third Section + +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; +&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; + +
+
+ +
+
diff --git a/contrib/xsl/tabular-toc/examples/website/xml/depends.tabular b/contrib/xsl/tabular-toc/examples/website/xml/depends.tabular new file mode 100644 index 000000000..d28d69dcd --- /dev/null +++ b/contrib/xsl/tabular-toc/examples/website/xml/depends.tabular @@ -0,0 +1,29 @@ +website: ../html/layout.html ../html/linking.html ../html/custom.html ../html/building.html ../html/buildmake.html ../html/buildext.html ../html/textonly.html ../html/formtest.html ../html/test3.html ../html/rddl.html ../html/php.html ../html/rss.html ../html/full.html ../html/book/index.html ../html/revflag.html ../html/index.html ../html/subdir/test1a.html ../html/subdir/test1b.html ../html/test1.html ../html/about.html + +../html/index.html: website.xml +../html/layout.html: wslayout.xml +../html/linking.html: olink.xml +../html/custom.html: custom.xml +../html/building.html: building.xml +../html/buildmake.html: build-make.xml +../html/buildext.html: build-ext.xml +../html/textonly.html: build-textonly.xml +../html/formtest.html: test2.xml +../html/test3.html: test3.xml +../html/rddl.html: rddl.xml +../html/php.html: php.xml +../html/rss.html: rss.xml +../html/full.html: full.xml +../html/book/index.html: book/book.001.xml +../html/revflag.html: revflag.xml +../html/test1.html: test1.xml +../html/subdir/test1a.html: test1a.xml +../html/subdir/test1b.html: test1b.xml +../html/about.html: about.xml + +distclean: clean + rm -f autolayout.xml depends.tabular + +clean: + rm -f ../html/layout.html ../html/linking.html ../html/custom.html ../html/building.html ../html/buildmake.html ../html/buildext.html ../html/textonly.html ../html/formtest.html ../html/test3.html ../html/rddl.html ../html/php.html ../html/rss.html ../html/full.html ../html/book/index.html ../html/revflag.html ../html/index.html ../html/subdir/test1a.html ../html/subdir/test1b.html ../html/test1.html ../html/about.html + -- 2.40.0