smoketest-normal:
for stylesheet in $(NORMAL_STYLES); do \
- echo "$(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE) > /dev/null"; \
- $(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE) > /dev/null; \
- echo "$(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE-NS) > /dev/null"; \
- $(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE-NS) > /dev/null; \
+ echo "$(XSLT) $(TESTFILE) $$stylesheet > /dev/null"; \
+ $(XSLT) $(TESTFILE) $$stylesheet > /dev/null; \
+ echo "$(XSLT) $(TESTFILE-NS) $$stylesheet > /dev/null"; \
+ $(XSLT) $(TESTFILE-NS) $$stylesheet > /dev/null; \
done
smoketest-normal-profile:
for stylesheet in $(NORMAL_PROFILE_STYLES); do \
- echo "$(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE) > /dev/null"; \
- $(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE) > /dev/null; \
- echo "$(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE-NS) > /dev/null"; \
- $(XSLTPROC) $(XSLTPROC_FLAGS) $$stylesheet $(TESTFILE-NS) > /dev/null; \
+ echo "$(XSLT) $(TESTFILE) $$stylesheet > /dev/null"; \
+ $(XSLT) $(TESTFILE) $$stylesheet > /dev/null; \
+ echo "$(XSLT) $(TESTFILE-NS) $$stylesheet > /dev/null"; \
+ $(XSLT) $(TESTFILE-NS) $$stylesheet > /dev/null; \
done
smoketest-chunk:
for stylesheet in $(MULTIFILE_STYLES) ; do \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1 $$stylesheet $(TESTFILE); \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1 $$stylesheet $(TESTFILE-NS); \
+ $(XSLT) $(TESTFILE) $$stylesheet --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1; \
+ $(XSLT) $(TESTFILE-NS) $$stylesheet --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1; \
done;
smoketest-chunk-profile:
for stylesheet in $(MULTIFILE_PROFILE_STYLES) ; do \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1 $$stylesheet $(TESTFILE); \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1 $$stylesheet $(TESTFILE-NS); \
+ $(XSLT) $(TESTFILE) $$stylesheet --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1; \
+ $(XSLT) $(TESTFILE-NS) $$stylesheet --stringparam base.dir $(TMP_OUTPUT_DIR) --param manifest.in.base.dir 1; \
done;
smoketest-man:
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 $(MAN_STYLE) $(TESTFILE); \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 $(MAN_STYLE) $(TESTFILE-NS); \
+ $(XSLT) $(TESTFILE) $(MAN_STYLE) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 \
+ $(XSLT) $(TESTFILE-NS) $(MAN_STYLE) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 \
smoketest-man-profile:
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 $(MAN_PROFILE_STYLE) $(TESTFILE); \
- $(XSLTPROC) $(XSLTPROC_FLAGS) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 $(MAN_PROFILE_STYLE) $(TESTFILE-NS); \
+ $(XSLT) $(TESTFILE) $(MAN_PROFILE_STYLE) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 \
+ $(XSLT) $(TESTFILE-NS) $(MAN_PROFILE_STYLE) --stringparam man.output.base.dir $(TMP_OUTPUT_DIR) --param man.output.in.separate.dir 1 \
smoketest-clean:
$(RM) -r $(TMP_OUTPUT_DIR)
the driver stylesheets for each output format (e.g.,
html/docbook.xsl, fo/docbook.xsl, etc.).
+ Because of problems with the 1.74.* releases, it is now
+ recommended that "make check" be run multiple times with
+ different XSLT processors.
+
One recommended way to invoke "make check" is the following:
rm -f DOCBOOK-BUILD.LOG && \
| tee DOCBOOK-BUILD.LOG && \
$DOCBOOK_SVN/buildtools/build-check DOCBOOK-BUILD.LOG
+ After running with "xsltproc", you should run it again with
+ "saxon":
+ rm -f DOCBOOK-BUILD.LOG && \
+ . ~/docbk.sh && \
+ make check 2>&1 \
+ XSLTENGINE=saxon \
+ | tee DOCBOOK-BUILD.LOG && \
+ $DOCBOOK_SVN/buildtools/build-check DOCBOOK-BUILD.LOG
+
4. Fix any obvious problems.
If build-check and/or "make check" report any problems, fix
them. Then repeat Step 1 until you don't see any more problems.
Once you have any obvious problems fixed (that is, the kind
that build-check and "make check" can catch, you should
do further testing of the changes (if any) that you have made
- to the stylesheet code. Try to test with a variety of test
+ m to the stylesheet code. Try to test with a variety of test
files, not just with DocBook XML source files you've created
yourself. Consider using the files in the "testdocs" module
(see step 1 of the "Build Setup" section above).