summaryrefslogtreecommitdiff
path: root/src/raptor_libxml.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2010-01-08 15:52:26 -0800
committerDave Beckett <dave@dajobe.org>2010-01-08 15:52:26 -0800
commitafd3e056242a845324fd246c6e5ec18b885e376c (patch)
tree735af2903d2f33f9aabc410e78ed00f8a375aaf6 /src/raptor_libxml.c
parentf36e0a3ef38822dea73e8ebe56719dc9e8eb7fab (diff)
downloadraptor-afd3e056242a845324fd246c6e5ec18b885e376c.tar.gz
Handle new XML_FROM_SCHEMATRONV introduced in libxml 2.6.32 2008-04-08
Diffstat (limited to 'src/raptor_libxml.c')
-rw-r--r--src/raptor_libxml.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/raptor_libxml.c b/src/raptor_libxml.c
index c0c72a30..9e8ab749 100644
--- a/src/raptor_libxml.c
+++ b/src/raptor_libxml.c
@@ -537,6 +537,9 @@ raptor_libxml_finish(raptor_world* world)
}
+#if LIBXML_VERSION >= 20632
+#define XML_LAST_DL XML_FROM_SCHEMATRONV
+#else
#if LIBXML_VERSION >= 20621
#define XML_LAST_DL XML_FROM_I18N
#else
@@ -554,7 +557,7 @@ raptor_libxml_finish(raptor_world* world)
#endif
#endif
#endif
-
+#endif
/* All other symbols not specifically below noted were added during
* the period 2-10 October 2003 which is before the minimum libxml2
@@ -607,6 +610,10 @@ static const char* const raptor_libxml_domain_labels[XML_LAST_DL+2]= {
"module", /* XML_FROM_MODULE */
"encoding", /* XML_FROM_I18N */
#endif
+#if LIBXML_VERSION >= 20632
+ /* 2008-04-08 - v2.6.32 */
+ "schematronv", /* XML_FROM_SCHEMATRONV */
+#endif
NULL
};