Fix compilation with minimum and schematron.

Add a hard dependancy on tree.
Disable write and close callbacks when output is disabled.
This commit is contained in:
Nicolas Le Cam 2013-06-14 22:20:37 +02:00 committed by Daniel Veillard
parent 77b5b46409
commit 1af8b7b22e
2 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,7 @@ fi
if test "$with_schematron" = "yes"
then
with_pattern=yes
with_tree=yes
with_xpath=yes
fi
if test "$with_reader" = "yes"

View File

@ -165,8 +165,10 @@ struct _xmlSchematronValidCtxt {
FILE *outputFile; /* if using XML_SCHEMATRON_OUT_FILE */
xmlBufferPtr outputBuffer; /* if using XML_SCHEMATRON_OUT_BUFFER */
#ifdef LIBXML_OUTPUT_ENABLED
xmlOutputWriteCallback iowrite; /* if using XML_SCHEMATRON_OUT_IO */
xmlOutputCloseCallback ioclose;
#endif
void *ioctx;
/* error reporting data */