]> granicus.if.org Git - docbook-dsssl/commitdiff
For docbook-xsl builds, feed xjparse the -EO and -w switches.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 1 Jul 2007 09:23:03 +0000 (09:23 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 1 Jul 2007 09:23:03 +0000 (09:23 +0000)
 -E0
   suppresses the "Parse succeeded... with no errors and no warnings"
   messages that xjparse (actually, the XML Commons resolver)
   otherwise emits.
 -w
   cause xjparse/resolver to only do a well-formedness check,
   instead of trying to do validation; the reason for adding this
   is that xjparse gets run against what are now doctype-less,
   namespaced DocBook instances (after recent changes to the
   build) and fails to validate those (because they don't have a
   doctype)
 What we really need to do long-term is replace xjparse with a
 better, RELAXNG-aware validation mechanism, so that we can have
 the build properly validate stuff that it should be checking.
 That maybe amounts to making an "xslt" wrapper tool that either
 calls jing or rnv (depending on what the builder wants to use).

 But for now we'll need to tolerate that fact that xjparse isn't
 doing anything more for us than just simply WF checking...

buildtools/Makefile.incl
xsl/Makefile
xsl/common/Makefile

index 5ada96bd121fda073e8924353ffea04b82c08d85..5d4fc957f4035069fb3ed800b9f1af100b489ce2 100644 (file)
@@ -14,7 +14,7 @@ SCHEMATRON-PATH=/share/doctypes/schematron
 SCHEMATRON-SKELETON=$(SCHEMATRON-PATH)/skeleton1-5.xsl
 TIDY=$(CVSTOOLSROOT)/untidy
 XJPARSE=$(CVSTOOLSROOT)/xjparse
-XJPARSEFLAGS=-E 0
+XJPARSEFLAGS=
 XNSGMLS=xnsgmls
 DTDDISTRIB=$(CVSTOOLSROOT)/dtd-distrib
 JADE=$(CVSTOOLSROOT)/runjade
index dbf578f4e8c885b8aa0657f35a45de46390f8e76..ff63fbb2677a007d1b2354c0c649044b2f77829b 100644 (file)
@@ -3,6 +3,12 @@
 include ../buildtools/Makefile.incl
 include ../releasetools/Variables.mk
 
+# The -E0 switch on xjparse gets passed on to the XML Commons
+# resolver and causes all error message from the resolver to be
+# suppressed. The -w switch causes the resolver to just do a
+# well-formedness check instead of a validity check.
+XJPARSEFLAGS=-E0 -w
+
 DISTRO=xsl
 
 # value of DISTRIB_CHANGELOG_INCLUDES is a space-separated list of
index 69018c63b2df7720b6c8ff82dbeaef67628de1e9..a021837fb80bac3bd3c29241f6b166273487c403 100644 (file)
@@ -73,7 +73,7 @@ zh_cn.xml: ../../gentext/locale/zh_cn.xml $(GENSTYLE)
 zh_tw.xml: ../../gentext/locale/zh_tw.xml $(GENSTYLE)
 
 %.xml:
-       $(XJPARSE) $(XJPARSEFLAGS) -w $<
+       $(XJPARSE) $(XJPARSEFLAGS) $<
        $(XSLT) ../../gentext/locale/en.xml ../../gentext/xsl/xsl.xsl $@ locale.file=$@
 
 clean: