]> granicus.if.org Git - docbook-dsssl/commitdiff
Added rule to transform the (intermediate) howto.xml file from
authorThomas Schraitle <tom_schr@web.de>
Mon, 22 Jun 2009 12:11:18 +0000 (12:11 +0000)
committerThomas Schraitle <tom_schr@web.de>
Mon, 22 Jun 2009 12:11:18 +0000 (12:11 +0000)
howto.de.xml using profiling. Retrieving stylesheet by resolving
canonical URI with xmlcatalog

docbook/relaxng/docbook/howto/de/Makefile

index a428331ce14caaca5411859f2f9aa8168ce87bc6..cd5904f6a9c9e97013f62e300cf9e0b19af8ae20 100644 (file)
@@ -7,10 +7,24 @@ HTMLNSSTYLE=../stylesheets/html-ns.xsl
 FONSSTYLE=../stylesheets/fo-ns.xsl\r
 VARS=\r
 \r
-all: howto.html howto.pdf\r
+XMLCATFILE=/etc/xml/catalog\r
+DB=http://docbook.sourceforge.net/release/xsl/current/\r
+DBNS=http://docbook.sourceforge.net/release/xsl-ns/current/\r
+PROFSTYLE=$(shell xmlcatalog ${XMLCATFILE}   ${DB}/profiling/profile.xsl )\r
+PROFNSSTYLE=$(shell xmlcatalog ${XMLCATFILE} ${DBNS}/profiling/profile.xsl )\r
+\r
+all: howto.xml howto.html howto.pdf\r
 \r
 # output using the namespaced stylesheets\r
-ns: howto.ns.html howto.ns.pdf\r
+ns: howto.ns.xml howto.ns.html howto.ns.pdf\r
+\r
+%.xml :  %.de.xml \r
+       @echo "Profiling $@ into $<..."\r
+       $(XSLT) $< $(PROFSTYLE) $@ $(VARS) profile.lang=de\r
+\r
+%.ns.xml: %.de.xml\r
+       @echo "Profiling $@ into $<..." \r
+       $(XSLT) $< $(PROFNSSTYLE) $@ $(VARS) profile.lang=de\r
 \r
 %.html : %.xml $(HTMLSTYLE)\r
        jing -c ../../docbook.rnc $<\r