From: Jirka Kosek Date: Fri, 1 Mar 2002 17:25:27 +0000 (+0000) Subject: First portion of new profiling code. New stylesheet parameters will come later. X-Git-Tag: release/1.79.1~6^2~5893 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=057a48bd57615da7548442d3f3679f7bd33c7d07;p=docbook-dsssl First portion of new profiling code. New stylesheet parameters will come later. --- diff --git a/xsl/Makefile b/xsl/Makefile index d89692712..ca17a9a53 100644 --- a/xsl/Makefile +++ b/xsl/Makefile @@ -4,7 +4,7 @@ NEXTVER=../cvstools/nextversion DIFFVER= ZIPVER= -DIRS=common html fo extensions +DIRS=common html fo extensions htmlhelp javahelp .PHONY : distrib clean doc xhtml diff --git a/xsl/fo/Makefile b/xsl/fo/Makefile index 8f7454bce..8b8952cdc 100644 --- a/xsl/fo/Makefile +++ b/xsl/fo/Makefile @@ -3,7 +3,7 @@ XJPARSE=../../cvstools/xjparse include Makefile.param -all: titlepage.templates.xsl param.xsl +all: titlepage.templates.xsl param.xsl profile-docbook.xsl param.html: param.xml ../../cvstools/paramchk -m Makefile.param $< @@ -22,3 +22,6 @@ titlepage.templates.xsl: titlepage.templates.xml ../template/titlepage.xsl Makefile.param: ../../cvstools/paramchk -m $@ param.xweb + +profile-docbook.xsl: + $(XSLT) docbook.xsl ../profiling/xsl2profile.xsl $@ diff --git a/xsl/html/Makefile b/xsl/html/Makefile index 4eea7e7f0..637b8b032 100644 --- a/xsl/html/Makefile +++ b/xsl/html/Makefile @@ -3,7 +3,7 @@ XJPARSE=../../cvstools/xjparse include Makefile.param -all: titlepage.templates.xsl param.xsl +all: titlepage.templates.xsl param.xsl profile-docbook.xsl profile-chunk.xsl xml: param.xml @@ -27,3 +27,9 @@ titlepage.templates.xsl: titlepage.templates.xml ../template/titlepage.xsl Makefile.param: ../../cvstools/paramchk -m $@ param.xweb make + +profile-docbook.xsl: + $(XSLT) docbook.xsl ../profiling/xsl2profile.xsl $@ + +profile-chunk.xsl: + $(XSLT) chunk.xsl ../profiling/xsl2profile.xsl $@ diff --git a/xsl/html/Makefile.param b/xsl/html/Makefile.param index f205e0f94..6d98ef6d4 100644 --- a/xsl/html/Makefile.param +++ b/xsl/html/Makefile.param @@ -23,6 +23,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/chapter.autolabel.xml \ ../params/chunk.datafile.xml \ ../params/chunk.first.sections.xml \ + ../params/chunk.quietly.xml \ ../params/chunk.section.depth.xml \ ../params/chunk.toc.xml \ ../params/citerefentry.link.xml \ @@ -128,7 +129,6 @@ PARAMS=../params/admon.graphics.xml \ ../params/show.comments.xml \ ../params/show.revisionflag.xml \ ../params/spacing.paras.xml \ - ../params/stylesheet.result.type.xml \ ../params/suppress.navigation.xml \ ../params/table.border.color.xml \ ../params/table.border.style.xml \ diff --git a/xsl/htmlhelp/Makefile b/xsl/htmlhelp/Makefile new file mode 100644 index 000000000..049904e8d --- /dev/null +++ b/xsl/htmlhelp/Makefile @@ -0,0 +1,7 @@ +XSLT=../../cvstools/saxon +XJPARSE=../../cvstools/xjparse + +all: profile-htmlhelp.xsl + +profile-htmlhelp.xsl: + $(XSLT) htmlhelp.xsl ../profiling/xsl2profile.xsl $@ diff --git a/xsl/javahelp/Makefile b/xsl/javahelp/Makefile new file mode 100644 index 000000000..83788ee4b --- /dev/null +++ b/xsl/javahelp/Makefile @@ -0,0 +1,7 @@ +XSLT=../../cvstools/saxon +XJPARSE=../../cvstools/xjparse + +all: profile-javahelp.xsl + +profile-javahelp.xsl: + $(XSLT) javahelp.xsl ../profiling/xsl2profile.xsl $@ diff --git a/xsl/profiling/profile-mode.xsl b/xsl/profiling/profile-mode.xsl new file mode 100644 index 000000000..1948f7df2 --- /dev/null +++ b/xsl/profiling/profile-mode.xsl @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + diff --git a/xsl/profiling/xsl2profile.xsl b/xsl/profiling/xsl2profile.xsl new file mode 100644 index 000000000..71ba62d7c --- /dev/null +++ b/xsl/profiling/xsl2profile.xsl @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + This file was created automatically by xml2profile + + from the DocBook XSL stylesheets. Do not edit this file. + + + + + + + + + dummy + + exslt + + + exslt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $profiled-nodes + + + + + + + + + + + + + + + + + + + key('id',$rootid) + $profiled-nodes//*[@id=$rootid] + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/xhtml/Makefile b/xsl/xhtml/Makefile index 440bfa88b..5a756dd5c 100644 --- a/xsl/xhtml/Makefile +++ b/xsl/xhtml/Makefile @@ -1,6 +1,6 @@ include ../../cvstools/Makefile.incl -all: xslfiles +all: xslfiles profile-docbook.xsl profile-chunk.xsl include xslfiles.gen @@ -16,7 +16,8 @@ include xslfiles.gen xslfiles.list: .cvsignore echo -n "xslfiles: " > xslfiles.gen for f in `cat .cvsignore`; do \ - if [ "$$f" != ".cvsignore" -a "$$f" != "xslfiles.gen" ]; then \ + if [ "$$f" != ".cvsignore" -a "$$f" != "xslfiles.gen" \ + -a "$$f" != "profile-docbook.xsl" -a "$$f" != "profile-chunk.xsl" ]; then \ echo -n `basename $$f`; \ if [ "$$f" != "xref.xsl" ]; then \ echo " \\"; \ @@ -27,7 +28,8 @@ xslfiles.list: .cvsignore done >> xslfiles.gen echo "" >> xslfiles.gen for f in `cat .cvsignore`; do \ - if [ "$$f" != ".cvsignore" -a "$$f" != "xslfiles.gen" ]; then \ + if [ "$$f" != ".cvsignore" -a "$$f" != "xslfiles.gen" \ + -a "$$f" != "profile-docbook.xsl" -a "$$f" != "profile-chunk.xsl" ]; then \ echo `basename $$f`: ../html/`basename $$f`; \ echo -n " $$"; \ echo -n "(XSLT) "; \ @@ -49,3 +51,9 @@ clean: #%.xsl: html2xhtml.xsl # $(XSLT) ../html/$@ html2xhtml.xsl $@ + +profile-docbook.xsl: + $(XSLT) docbook.xsl ../profiling/xsl2profile.xsl $@ + +profile-chunk.xsl: + $(XSLT) chunk.xsl ../profiling/xsl2profile.xsl $@