From: Michael Smith Date: Fri, 7 Oct 2005 08:50:11 +0000 (+0000) Subject: Added wordml into doc and release build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0ba18a7347379c11d54f63b0034d6aaf40192e6;p=docbook-dsssl Added wordml into doc and release build. --- diff --git a/xsl/doc/Makefile b/xsl/doc/Makefile index 60d4434d2..e37714f1c 100644 --- a/xsl/doc/Makefile +++ b/xsl/doc/Makefile @@ -9,7 +9,7 @@ CRSTYLE=creference.xsl BSTYLE=book.xsl VPATH=../docsrc -DIRS=common refentry lib html fo manpages slides/html website tools template pi +DIRS=common refentry lib html fo manpages wordml slides/html website tools template pi all: copyright.html warranty.html reference.html index.html for i in $(DIRS) __bogus__; do \ diff --git a/xsl/doc/wordml/Makefile b/xsl/doc/wordml/Makefile new file mode 100644 index 000000000..a0a2b58aa --- /dev/null +++ b/xsl/doc/wordml/Makefile @@ -0,0 +1,19 @@ +include ../../../cvstools/Makefile.incl + +STYLE=../jrefhtml.xsl +VPATH=../../docsrc/wordml +XSLTOPT= + +HTMLFILES = param.html + +all: $(HTMLFILES) + +%.html : %.xml $(STYLE) + $(XSLT) $< $(STYLE) $@ $(XSLTOPT) + +param.html: docparam.xml + $(XSLT) $< ../../docsrc/clrefentry.xsl $(XSLTOPT) + touch param.html + +clean: + rm -f *.html diff --git a/xsl/docsrc/Makefile b/xsl/docsrc/Makefile index 96c0a1aa4..0fff632f2 100644 --- a/xsl/docsrc/Makefile +++ b/xsl/docsrc/Makefile @@ -1,4 +1,4 @@ -DIRS=common refentry html fo manpages slides/html website template tools pi +DIRS=common refentry html fo manpages wordml slides/html website template tools pi all: xsl-params.xsl for i in $(DIRS) __bogus__; do \ diff --git a/xsl/docsrc/make-xsl-params.pl b/xsl/docsrc/make-xsl-params.pl index 63c1dd204..eac35b0a6 100755 --- a/xsl/docsrc/make-xsl-params.pl +++ b/xsl/docsrc/make-xsl-params.pl @@ -53,6 +53,22 @@ foreach my $param (/$1\n", } +print < + + + + +EOF5 + +open (F, "../wordml/param.xsl"); +read (F, $_, -s "../wordml/param.xsl"); +close (F); +foreach my $param (/$1\n", +} + print < diff --git a/xsl/docsrc/reference.xml b/xsl/docsrc/reference.xml index d2fd92ac6..aa8bde991 100644 --- a/xsl/docsrc/reference.xml +++ b/xsl/docsrc/reference.xml @@ -8,6 +8,7 @@ PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + @@ -43,6 +44,9 @@ PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + + diff --git a/xsl/docsrc/wordml/Makefile b/xsl/docsrc/wordml/Makefile new file mode 100644 index 000000000..a80b59b77 --- /dev/null +++ b/xsl/docsrc/wordml/Makefile @@ -0,0 +1,19 @@ +include ../../../cvstools/Makefile.incl + +JSTYLE=../../docsrc/xsl2jref.xsl +VPATH=../../wordml + +XMLFILES = docparam.xml + +all: $(XMLFILES) + +clean: + rm -f $(XMLFILES) + +%.xml : %.xsl $(JSTYLE) + $(XSLT) $< $(JSTYLE) /dev/null output-file=$@ + $(XJPARSE) $@ + +docparam.xml: ../../wordml/param.xsl + $(MAKE) -C ../../wordml param.xml + cp ../../wordml/param.xml docparam.xml diff --git a/xsl/docsrc/xsl-param-link.xsl b/xsl/docsrc/xsl-param-link.xsl index eb0cf68da..48a4cbc8c 100644 --- a/xsl/docsrc/xsl-param-link.xsl +++ b/xsl/docsrc/xsl-param-link.xsl @@ -13,6 +13,9 @@ + + @@ -36,6 +39,12 @@ + + + + + + @@ -52,6 +61,11 @@ + + + + + diff --git a/xsl/wordml/.cvsignore b/xsl/wordml/.cvsignore new file mode 100644 index 000000000..bf7e41f8e --- /dev/null +++ b/xsl/wordml/.cvsignore @@ -0,0 +1,5 @@ +Makefile.param +param.xml +param.xsl +profile-docbook.xsl +xref.xsl diff --git a/xsl/wordml/Makefile b/xsl/wordml/Makefile index fe6057f27..bf6c563a1 100644 --- a/xsl/wordml/Makefile +++ b/xsl/wordml/Makefile @@ -1,3 +1,5 @@ +include ../../cvstools/Makefile.incl + # Change this to where you are storing your roundtripping stylesheets STYLESHEETDIR = . @@ -19,6 +21,20 @@ include Makefile.param all: param.xsl +xml: param.xml + +html: param.html + +param.html: param.xml + $(XSLT) $< ../docsrc/lrefentry.xsl $@ + +param.xml: param.xweb $(PARAMS) + ../../cvstools/paramchk -m Makefile.param $< + $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html + $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition + $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@ + $(RM) $(PARAMPROF) $(PARAMSTRIP) + param.xsl: param.xweb ../../cvstools/paramchk -m Makefile.param $< $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=wordml @@ -30,7 +46,7 @@ Makefile.param: ../../cvstools/paramchk -m $@ param.xweb clean: - $(RM) param.xsl + $(RM) param.xml param.html param.xsl $(RM) Makefile.param echo "# foo" > Makefile.param diff --git a/xsl/wordml/param.xweb b/xsl/wordml/param.xweb index 6d1b3e2b2..efceddc9e 100644 --- a/xsl/wordml/param.xweb +++ b/xsl/wordml/param.xweb @@ -21,7 +21,7 @@ - + Introduction This is technical documentation for the DocBook XSL Stylesheets to produce WordML output (or Apple Pages); it documents the parameters, templates and usage of the stylesheet(s). @@ -30,6 +30,7 @@ &wordml.template; +&pages.template; The Stylesheet