summaryrefslogtreecommitdiff
path: root/testXPath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-07 01:10:10 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-07 01:10:10 +0000
commit48da91009715d1fcafa5f2b48b58e4009a41e998 (patch)
treeb75a9e9546394d1298e2dc70b03f5df8eb4a65fb /testXPath.c
parent50f3437111a6428b4852740e83db4848b0b09a97 (diff)
downloadlibxml2-48da91009715d1fcafa5f2b48b58e4009a41e998.tar.gz
allow to inherit attributes from the DTD directly in the tree, this is
* SAX.c testXPath.c valid.c xmllint.c include/libxml/valid.h: allow to inherit attributes from the DTD directly in the tree, this is needed for XPath and can be a useful feature. Inherited namespaces are always provided at the tree level now * test/defattr* result/defattr* result/noent/defattr*: added a couple of tests for this feature (XSLT being the prime user). Daniel
Diffstat (limited to 'testXPath.c')
-rw-r--r--testXPath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testXPath.c b/testXPath.c
index 983299d9..04d09d22 100644
--- a/testXPath.c
+++ b/testXPath.c
@@ -175,6 +175,8 @@ int main(int argc, char **argv) {
usefile++;
}
if (valid != 0) xmlDoValidityCheckingDefaultValue = 1;
+ xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS;
+ xmlLoadExtDtdDefaultValue |= XML_COMPLETE_ATTRS;
if (nocdata != 0) {
xmlDefaultSAXHandlerInit();
xmlDefaultSAXHandler.cdataBlock = NULL;