From 8ef268ef655fbea80366719278c915c82d737365 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Sun, 30 Dec 2001 22:28:26 +0000 Subject: [PATCH] Completely reworked strategy for XHTML --- xsl/xhtml/.cvsignore | 41 ++++++++++++++ xsl/xhtml/Makefile | 26 +++++++++ xsl/xhtml/chunk.xsl | 20 ------- xsl/xhtml/docbook.xsl | 54 ------------------ xsl/xhtml/html2xhtml.xsl | 117 +++++++++++++++++++++++++++++++++++++++ xsl/xhtml/xslfiles.gen | 41 ++++++++++++++ 6 files changed, 225 insertions(+), 74 deletions(-) create mode 100644 xsl/xhtml/.cvsignore create mode 100644 xsl/xhtml/Makefile delete mode 100644 xsl/xhtml/chunk.xsl delete mode 100644 xsl/xhtml/docbook.xsl create mode 100644 xsl/xhtml/html2xhtml.xsl create mode 100644 xsl/xhtml/xslfiles.gen diff --git a/xsl/xhtml/.cvsignore b/xsl/xhtml/.cvsignore new file mode 100644 index 000000000..1ddd38f5f --- /dev/null +++ b/xsl/xhtml/.cvsignore @@ -0,0 +1,41 @@ +admon.xsl +autoidx.xsl +autotoc.xsl +biblio.xsl +block.xsl +calc-chunks.xsl +callout.xsl +changebars.xsl +chunk-experimental.xsl +chunk.xsl +chunker.xsl +component.xsl +division.xsl +docbook.xsl +ebnf.xsl +expchunk.xsl +footnote.xsl +formal.xsl +glossary.xsl +graphics.xsl +html.xsl +index.xsl +info.xsl +inline.xsl +keywords.xsl +lists.xsl +math.xsl +oldchunker.xsl +onechunk.xsl +param.xsl +pi.xsl +qandaset.xsl +refentry.xsl +sections.xsl +synop.xsl +table.xsl +titlepage.templates.xsl +titlepage.xsl +toc.xsl +verbatim.xsl +xref.xsl diff --git a/xsl/xhtml/Makefile b/xsl/xhtml/Makefile new file mode 100644 index 000000000..fb02feab3 --- /dev/null +++ b/xsl/xhtml/Makefile @@ -0,0 +1,26 @@ +include ../../cvstools/Makefile.incl + +all: xslfiles + +include xslfiles.gen + +.cvsignore: + for f in ../html/*.xsl; do \ + echo `basename $$f`; \ + done >> .cvsignore + +# note: this will break if a file is added to the html directory that occurs +# alphabetically after xref.xsl +xslfiles.list: .cvsignore + echo -n "xslfiles: " > xslfiles.gen + for f in `cat .cvsignore`; do \ + echo -n `basename $$f`; \ + if [ "$$f" != "xref.xsl" ]; then \ + echo " \\"; \ + else \ + echo ""; \ + fi; \ + done >> xslfiles.gen + +%.xsl: html2xhtml.xsl + $(XSLT) ../html/$@ html2xhtml.xsl $@ diff --git a/xsl/xhtml/chunk.xsl b/xsl/xhtml/chunk.xsl deleted file mode 100644 index 9b23ffb15..000000000 --- a/xsl/xhtml/chunk.xsl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/xsl/xhtml/docbook.xsl b/xsl/xhtml/docbook.xsl deleted file mode 100644 index 17f21f2ab..000000000 --- a/xsl/xhtml/docbook.xsl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xsl/xhtml/html2xhtml.xsl b/xsl/xhtml/html2xhtml.xsl new file mode 100644 index 000000000..0f8b49fe4 --- /dev/null +++ b/xsl/xhtml/html2xhtml.xsl @@ -0,0 +1,117 @@ + + + + + + + + + This file was created automatically by html2xhtml + + from the HTML stylesheets. Do not edit this file. + + + + + + + + + + xml + -//W3C//DTD XHTML 1.0 Transitional//EN + http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd + + + + + + + 1 + + + + + + + 'xml' + + + + + + + 'xhtm' + + + + + + + + + id + + + + + + + + + + + + + + + + + no apply-templates; make it empty + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/xhtml/xslfiles.gen b/xsl/xhtml/xslfiles.gen new file mode 100644 index 000000000..6e92631ee --- /dev/null +++ b/xsl/xhtml/xslfiles.gen @@ -0,0 +1,41 @@ +xslfiles: admon.xsl \ +autoidx.xsl \ +autotoc.xsl \ +biblio.xsl \ +block.xsl \ +calc-chunks.xsl \ +callout.xsl \ +changebars.xsl \ +chunk-experimental.xsl \ +chunk.xsl \ +chunker.xsl \ +component.xsl \ +division.xsl \ +docbook.xsl \ +ebnf.xsl \ +expchunk.xsl \ +footnote.xsl \ +formal.xsl \ +glossary.xsl \ +graphics.xsl \ +html.xsl \ +index.xsl \ +info.xsl \ +inline.xsl \ +keywords.xsl \ +lists.xsl \ +math.xsl \ +oldchunker.xsl \ +onechunk.xsl \ +param.xsl \ +pi.xsl \ +qandaset.xsl \ +refentry.xsl \ +sections.xsl \ +synop.xsl \ +table.xsl \ +titlepage.templates.xsl \ +titlepage.xsl \ +toc.xsl \ +verbatim.xsl \ +xref.xsl -- 2.40.0