]> granicus.if.org Git - docbook-dsssl/commitdiff
Add another build kludge, this one to work around the fact that
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 05:46:29 +0000 (05:46 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 05:46:29 +0000 (05:46 +0000)
xsltproc does schoolmarmish pedantic checking of xml:id values and
doesn't provide any option for preventing it from doing so.

xsl/Makefile.incl

index 29bc3a4e257d461b80f7de9cfde0b15e2fc78b1b..0e1800389ea2fa5e0411b59ad8558d7060b223be 100644 (file)
@@ -2,7 +2,9 @@ XJPARSEFLAGS= -E 0 -w
 PARAMPROF=.$(PARAMBASE).profiled
 PARAMSTRIP=.$(PARAMBASE).stripped
 PARAMDBKNS=.$(PARAMBASE).dbkns
+PARAMXMLID=.$(PARAMBASE).xmlid
 FIXPARAMNS=$(DOCBOOK_SVN)/xsl/tools/xsl/build/fix-params-ns.xsl
+IDTOXMLID=$(DOCBOOK_SVN)/xsl/tools/xsl/build/id-to-xmlid.xsl
 
 XMLFILES=$(foreach file,$(XSLFILES),$(basename $(file)).xml)
 
@@ -22,7 +24,10 @@ else
 endif
        $(RM) $(PARAMPROF)
 
-$(PARAMBASE).xml: $(PARAMSTRIP)
+$(PARAMBASE).xml: $(PARAMXMLID)
+       $(XSLT) $< $(IDTOXMLID) > $@
+
+$(PARAMXMLID): $(PARAMSTRIP)
 ifeq ($(ADDNEWLINE),)
        $(XSLT) $< $(DOCBOOK_SVN)/releasetools/w2docbook.xsl $@
 else
@@ -57,6 +62,7 @@ clean: $(CLEANTARGETS)
        $(RM) $(XMLFILES)
        $(RM) $(PARAMSTRIP)
        $(RM) $(PARAMDBKNS)
+       $(RM) $(PARAMXMLID)
 ifeq (,$(NO_MAKEFILE_PARAM))
        $(RM) Makefile.param
        echo "# foo" > Makefile.param