From: Michael Smith Date: Sun, 22 Jul 2007 10:29:01 +0000 (+0000) Subject: Added support for auto-generating doc hyperlinks for names of X-Git-Tag: release/1.79.1~6^2~1895 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45636c27221bfe161d4335a28bbf8f6a3ed0d661;p=docbook-dsssl Added support for auto-generating doc hyperlinks for names of docbook-xsl PIs referenced in the docs. --- diff --git a/releasetools/Variables.mk b/releasetools/Variables.mk index 7623df0e3..a3ddd7192 100644 --- a/releasetools/Variables.mk +++ b/releasetools/Variables.mk @@ -36,9 +36,12 @@ JREF2REFSECT1=$(DOCBUILD_STYLESHEETS)/jref2refsect1.xsl MAKE_ELEMENTS_XSL=$(DOCBUILD_STYLESHEETS)/make-elements.xsl # XSL params files to params list MAKE_PARAMS_XSL=$(DOCBUILD_STYLESHEETS)/make-xsl-params.xsl +# XSL PI files to PI list +MAKE_PI_XSL=$(DOCBUILD_STYLESHEETS)/make-xsl-pi.xsl # generated elements list DOCBOOK_ELEMENTS=$(DOCBUILD_STYLESHEETS)/docbook-elements.xsl XSL_PARAMS=$(DOCBUILD_STYLESHEETS)/xsl-params.xsl +XSL_PI=$(DOCBUILD_STYLESHEETS)/xsl-pi.xsl DOCPARAM2TXT=$(DOCBUILD_STYLESHEETS)/docparam2txt.xsl # reference.xml to reference.html diff --git a/xsl/docsrc/Makefile b/xsl/docsrc/Makefile index 22cf9511a..66664c908 100644 --- a/xsl/docsrc/Makefile +++ b/xsl/docsrc/Makefile @@ -11,8 +11,9 @@ OTHER_XML_FILES=../common/common.xml ../common/utility.xml ../common/refentry.xm DOCBOOK_RNG=$(DOCBOOK_SVN)/releasetools/docbook.rng PARAM_XSL_FILES=$(foreach format,$(PARAM_DIRS),../$(format)/param.xsl) +PI_XSL_FILES=$(foreach format,$(PI_DIRS),../$(format)/pi.xsl) -all: $(PARAM_XML_FILES) ../lib/lib.xml $(PI_XML_FILES) $(OTHER_XML_FILES) $(DOCBOOK_ELEMENTS) $(XSL_PARAMS) +all: $(PARAM_XML_FILES) ../lib/lib.xml $(PI_XML_FILES) $(OTHER_XML_FILES) $(DOCBOOK_ELEMENTS) $(XSL_PARAMS) $(XSL_PI) ../%/param.xml: $(MAKE) -C $(dir $@) param.xml @@ -39,6 +40,9 @@ $(DOCBOOK_ELEMENTS): $(MAKE_ELEMENTS_XSL) $(DOCBOOK_RNG) $(XSL_PARAMS): $(MAKE_PARAMS_XSL) $(PARAM_XSL_FILES) $(XSLT) $< $< $@ +$(XSL_PI): $(MAKE_PI_XSL) $(PI_XSL_FILES) + $(XSLT) $< $< $@ + release-clean: clean $(RM) $(DOCBOOK_ELEMENTS) $(RM) $(XSL_PARAMS) diff --git a/xsl/tools/xsl/build/.cvsignore b/xsl/tools/xsl/build/.cvsignore index 820a42ae3..f6d8980e2 100644 --- a/xsl/tools/xsl/build/.cvsignore +++ b/xsl/tools/xsl/build/.cvsignore @@ -1,2 +1,3 @@ docbook-elements.xsl xsl-params.xsl +xsl-pi.xsl diff --git a/xsl/tools/xsl/build/make-xsl-pi.xsl b/xsl/tools/xsl/build/make-xsl-pi.xsl new file mode 100644 index 000000000..47b929a4f --- /dev/null +++ b/xsl/tools/xsl/build/make-xsl-pi.xsl @@ -0,0 +1,133 @@ + + + + + + + + + + html fo common + + + + + + * WARNING WARNING WARNING + + * WARNING WARNING WARNING + + * This stylesheet was generated automatically. + + * Edit the make-xsl-pi.xsl file to rebuild this. + + * WARNING WARNING WARNING + + * WARNING WARNING WARNING + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/tools/xsl/build/reference.xsl b/xsl/tools/xsl/build/reference.xsl index 18430c4df..e0bfc5dce 100644 --- a/xsl/tools/xsl/build/reference.xsl +++ b/xsl/tools/xsl/build/reference.xsl @@ -1,6 +1,7 @@ + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.0"> + + + + - + + +http://www.sagehill.net/docbookxsl/ + + @@ -75,4 +84,28 @@ set toc,title + + + + + + + + DocBook XSL: TCG + , + + + + + + + + + + + + + + + diff --git a/xsl/tools/xsl/build/xsl-pi-link.xsl b/xsl/tools/xsl/build/xsl-pi-link.xsl new file mode 100644 index 000000000..7104b95b2 --- /dev/null +++ b/xsl/tools/xsl/build/xsl-pi-link.xsl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +