summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-02-24 15:45:30 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-03-08 17:31:35 (GMT)
commitdb20aff5bf81a6a935fbb89bf103351dc7a9215d (patch)
tree0d70484af653ae0efaeda3cf445891399aa69b1e /tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd
parentd62f8e1e593acbb69b22ed4f941f2bebbb82dd14 (diff)
downloadQt-db20aff5bf81a6a935fbb89bf103351dc7a9215d.zip
Qt-db20aff5bf81a6a935fbb89bf103351dc7a9215d.tar.gz
Qt-db20aff5bf81a6a935fbb89bf103351dc7a9215d.tar.bz2
QXmlSchema internals: include/import/redefine schemas only once
According to the Schema standard, loading a schema needs only be done once for each schema location. Currently, there was a problem with indirect includes (and imports/redefines): a In this scenario, schema a would only remember to have loaded / \ b, but not d, which resulted in an error when c was loading d b c again and the types in d were redefined. | | d d Reviewed-by: Tobias Koenig <tokoe@kde.org> Task-number: QTBUG-8394
Diffstat (limited to 'tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd')
-rw-r--r--tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd b/tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd
new file mode 100644
index 0000000..efaba74
--- /dev/null
+++ b/tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://qt.nokia.com/test" targetNamespace="http://qt.nokia.com/test">
+ <xsd:include schemaLocation="indirect-datatype.xsd" />
+</xsd:schema>