summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-02-07 12:38:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-02-07 12:38:22 +0000
commitef4d3bc36c22f6a9742e672d0bdd8342caf80c2e (patch)
treeb915a1c1105e0cfba688ed796612e5256ace49cd
parentc5a70f264550ee39da267e81dccd95508ed367dd (diff)
downloadlibxml2-ef4d3bc36c22f6a9742e672d0bdd8342caf80c2e.tar.gz
I f...ed up the default configuration of schemas and --relaxng option
* configure.in xmllint.c: I f...ed up the default configuration of schemas and --relaxng option display in xmllint, pointed by Morus Walter. * xlink.c: Sean Chittenden pointed a couple of errors in the XLink detection module, fixes bug #105374. Daniel
-rw-r--r--ChangeLog8
-rw-r--r--configure.in16
-rw-r--r--doc/libxml2-api.xml14
-rw-r--r--xlink.c4
-rw-r--r--xmllint.c2
5 files changed, 23 insertions, 21 deletions
diff --git a/ChangeLog b/ChangeLog
index d69c40aa..e7fc7422 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Fri Feb 7 13:34:08 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+ * configure.in xmllint.c: I f...ed up the default configuration
+ of schemas and --relaxng option display in xmllint, pointed by
+ Morus Walter.
+ * xlink.c: Sean Chittenden pointed a couple of errors in the XLink
+ detection module, fixes bug #105374.
+
Fri Feb 7 01:43:38 CET 2003 Daniel Veillard <daniel@veillard.com>
* xmlschemastypes.c: added the boolean base type.
diff --git a/configure.in b/configure.in
index 363401a5..e9f3801b 100644
--- a/configure.in
+++ b/configure.in
@@ -333,12 +333,6 @@ if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
if test "${with_docbook}" = "" ; then
with_docbook="yes"
fi
- if test "${with_xptr}" = "" ; then
- with_xptr="yes"
- fi
- if test "${with_schemas}" = "" ; then
- with_schemas="yes"
- fi
CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls "
dnl -Wcast-qual -ansi
fi
@@ -580,15 +574,15 @@ XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
AC_SUBST(WITH_ICONV)
AC_ARG_WITH(schemas, [ --with-schemas Add experimental Schemas/RelaxNG support (on)])
-if test "$with_schemas" = "yes" ; then
+if test "$with_schemas" = "no" ; then
+ echo "Disabled Schemas/Relax-NG support"
+ WITH_SCHEMAS=0
+ TEST_SCHEMAS=
+else
echo "Enabled Schemas/Relax-NG support"
WITH_SCHEMAS=1
TEST_SCHEMAS="Schemastests Relaxtests"
with_regexps=yes
-else
- echo "Disabled Schemas/Relax-NG support"
- WITH_SCHEMAS=0
- TEST_SCHEMAS=
fi
AC_SUBST(WITH_SCHEMAS)
AC_SUBST(TEST_SCHEMAS)
diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml
index c527532a..ad21fcdd 100644
--- a/doc/libxml2-api.xml
+++ b/doc/libxml2-api.xml
@@ -3525,11 +3525,11 @@ actually an xmlCharEncoding'/>
<arg name='ctx' type='void *' info='the user data (XML parser context)'/>
</functype>
<function name='htmlAttrAllowed' file='HTMLparser'>
- <info></info>
- <return type='htmlStatus' info=''/>
- <arg name='elt' type='const htmlElemDesc *' info=''/>
- <arg name='attr' type='const xmlChar *' info=''/>
- <arg name='legacy' type='int' info=''/>
+ <info>Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes</info>
+ <return type='htmlStatus' info='one of HTML_REQUIRED, HTML_VALID, HTML_DEPRECATED, HTML_INVALID'/>
+ <arg name='elt' type='const htmlElemDesc *' info='HTML element'/>
+ <arg name='attr' type='const xmlChar *' info='HTML attribute'/>
+ <arg name='legacy' type='int' info='whether to allow deprecated attributes'/>
</function>
<function name='htmlAutoCloseTag' file='HTMLparser'>
<info>The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it&apos;s children would autoclose the given tag.</info>
@@ -3705,8 +3705,8 @@ actually an xmlCharEncoding'/>
<arg name='encoding' type='const char *' info='the encoding string'/>
</function>
<function name='htmlNodeStatus' file='HTMLparser'>
- <info></info>
- <return type='htmlStatus' info=''/>
+ <info>for Element nodes) Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser)</info>
+ <return type='htmlStatus' info='for Element nodes, a return from htmlElementAllowedHere (if legacy allowed) or htmlElementStatusHere (otherwise). for Attribute nodes, a return from htmlAttrAllowed for other nodes, HTML_NA (no checks performed)'/>
<arg name='node' type='const htmlNodePtr' info=''/>
<arg name='legacy' type='int' info=''/>
</function>
diff --git a/xlink.c b/xlink.c
index 17ec77f6..d7fc6029 100644
--- a/xlink.c
+++ b/xlink.c
@@ -147,9 +147,9 @@ xlinkIsLink (xmlDocPtr doc, xmlNodePtr node) {
*/
type = xmlGetNsProp(node, BAD_CAST"type", XLINK_NAMESPACE);
if (type != NULL) {
- if (!xmlStrEqual(type, BAD_CAST "simple")) {
+ if (xmlStrEqual(type, BAD_CAST "simple")) {
ret = XLINK_TYPE_SIMPLE;
- } if (!xmlStrEqual(type, BAD_CAST "extended")) {
+ } if (xmlStrEqual(type, BAD_CAST "extended")) {
role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE);
if (role != NULL) {
xmlNsPtr xlink;
diff --git a/xmllint.c b/xmllint.c
index fc5aa1a4..8b47f74e 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -1215,7 +1215,7 @@ static void usage(const char *name) {
printf("\t--dropdtd : remove the DOCTYPE of the input docs\n");
printf("\t--stream : use the streaming interface to process very large files\n");
printf("\t--chkregister : verify the node registration code\n");
-#ifdef LIBXML_XINCLUDE_ENABLED
+#ifdef LIBXML_SCHEMAS_ENABLED
printf("\t--relaxng schema : do RelaxNG validation against the schema\n");
#endif
printf("\nLibxml project home page: http://xmlsoft.org/\n");