]> granicus.if.org Git - docbook-dsssl/commitdiff
Check for //refentry|//db:refentry instead of
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 25 Mar 2006 00:15:37 +0000 (00:15 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 25 Mar 2006 00:15:37 +0000 (00:15 +0000)
local-name() = 'refentry'... because single quotation marks cause
problem due to fact that the stylesheet is embedded in value of a
variable

contrib/tools/make/Makefile.DocBook

index 57059838cd96f6421189236ab6cf705a6324fed2..1767f9b3921d5857c090b8546e81f9bdae558a07 100644 (file)
@@ -190,10 +190,12 @@ FILES_MANT = $(foreach base,$(FILES_MAN),$(base).txt)
 #   ** stylesheet for testing whether a file has a refentry
 # -----------------------------------------------------------------
 REFENTRY_CHECK := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
-                version="1.0"> \
+                version="1.0" \
+                xmlns:db="http://docbook.org/ns/docbook" \
+                > \
   <xsl:output method="text"/> \
   <xsl:template match="/"> \
-    <xsl:if test="//*[local-name() = 'refentry']"> \
+    <xsl:if test="//refentry|//db:refentry"> \
       <xsl:text>true</xsl:text> \
     </xsl:if> \
   </xsl:template> \
@@ -345,8 +347,8 @@ MAN_CUSTOM := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
 #                  ** TARGETS START HERE ** 
 # -----------------------------------------------------------------
 #  prevents make from deleting, e.g. foo.1, after making foo.1.pdf
-#  and foo.1.txt from it, or foo.html after making foo.txt
-.PRECIOUS: %.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8 %.9 %.html
+#  and foo.1.txt from it.
+.PRECIOUS: %.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8 %.9
 
 docbook: $(DOCBOOK_OUTPUT_FORMATS)