From e576c505dc30dfb288d7d17ecf370e7b3abfbfaa Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 17 Jul 2007 05:46:29 +0000 Subject: [PATCH] Add another build kludge, this one to work around the fact that xsltproc does schoolmarmish pedantic checking of xml:id values and doesn't provide any option for preventing it from doing so. --- xsl/Makefile.incl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xsl/Makefile.incl b/xsl/Makefile.incl index 29bc3a4e2..0e1800389 100644 --- a/xsl/Makefile.incl +++ b/xsl/Makefile.incl @@ -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 -- 2.49.0