From e10c2baf8f426af772c2d40131726d5093377b15 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Mon, 22 Jun 2009 12:11:18 +0000 Subject: [PATCH] Added rule to transform the (intermediate) howto.xml file from howto.de.xml using profiling. Retrieving stylesheet by resolving canonical URI with xmlcatalog --- docbook/relaxng/docbook/howto/de/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docbook/relaxng/docbook/howto/de/Makefile b/docbook/relaxng/docbook/howto/de/Makefile index a428331ce..cd5904f6a 100644 --- a/docbook/relaxng/docbook/howto/de/Makefile +++ b/docbook/relaxng/docbook/howto/de/Makefile @@ -7,10 +7,24 @@ HTMLNSSTYLE=../stylesheets/html-ns.xsl FONSSTYLE=../stylesheets/fo-ns.xsl VARS= -all: howto.html howto.pdf +XMLCATFILE=/etc/xml/catalog +DB=http://docbook.sourceforge.net/release/xsl/current/ +DBNS=http://docbook.sourceforge.net/release/xsl-ns/current/ +PROFSTYLE=$(shell xmlcatalog ${XMLCATFILE} ${DB}/profiling/profile.xsl ) +PROFNSSTYLE=$(shell xmlcatalog ${XMLCATFILE} ${DBNS}/profiling/profile.xsl ) + +all: howto.xml howto.html howto.pdf # output using the namespaced stylesheets -ns: howto.ns.html howto.ns.pdf +ns: howto.ns.xml howto.ns.html howto.ns.pdf + +%.xml : %.de.xml + @echo "Profiling $@ into $<..." + $(XSLT) $< $(PROFSTYLE) $@ $(VARS) profile.lang=de + +%.ns.xml: %.de.xml + @echo "Profiling $@ into $<..." + $(XSLT) $< $(PROFNSSTYLE) $@ $(VARS) profile.lang=de %.html : %.xml $(HTMLSTYLE) jing -c ../../docbook.rnc $< -- 2.40.0