1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

"" is a valid hexbinary string dixit xmlschema-dev update the test. added

* xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev
* result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml:
  update the test.
* test/ns5 result//ns5*: added a test for the namespace bug fixed
  in previous commit.
* Makefile.am: added a message in the regression tests
Daniel
This commit is contained in:
Daniel Veillard 2004-08-31 08:42:17 +00:00
parent fc263f1fcf
commit f34a20e69d
11 changed files with 49 additions and 4 deletions

View File

@ -1,3 +1,12 @@
Tue Aug 31 10:37:23 CEST 2004 Daniel Veillard <daniel@veillard.com>
* xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev
* result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml:
update the test.
* test/ns5 result//ns5*: added a test for the namespace bug fixed
in previous commit.
* Makefile.am: added a message in the regression tests
Mon Aug 30 23:36:21 PDT 2004 William Brack <wbrack@mmm.com.hk>
* SAX2.c: fixed bug introduced during OOM fixup causing problems

View File

@ -967,6 +967,7 @@ SchemasPythonTests:
PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \
export PYTHONPATH; \
echo "## XML Schemas datatypes Python based test suite" ; \
echo "## It is normal to see 6 errors reported" ; \
$(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
fi)

4
result/noent/ns5 Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<element xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1" name="foo">
<empty/>
</element>

4
result/ns5 Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<element xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1" name="foo">
<empty/>
</element>

7
result/ns5.rde Normal file
View File

@ -0,0 +1,7 @@
0 1 element 0 0
1 14 #text 0 1
1 1 empty 1 0
1 14 #text 0 1
0 15 element 0 0

7
result/ns5.rdr Normal file
View File

@ -0,0 +1,7 @@
0 1 element 0 0
1 14 #text 0 1
1 1 empty 1 0
1 14 #text 0 1
0 15 element 0 0

11
result/ns5.sax Normal file
View File

@ -0,0 +1,11 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(element, name='foo', xmlns:rng='http://example.org/ns/1', xmlns='http://example.org/ns/1')
SAX.characters(
, 3)
SAX.startElement(empty)
SAX.endElement(empty)
SAX.characters(
, 1)
SAX.endElement(element)
SAX.endDocument()

View File

@ -1,5 +1,3 @@
./test/schemas/hexbinary_1.xml:4: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:5: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:6: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:7: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:8: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.

4
test/ns5 Normal file
View File

@ -0,0 +1,4 @@
<element name="foo" xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1">
<empty/>
</element>

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!-- all should fail to validate -->
<!-- all (except 2 first) should fail to validate -->
<xsd_hexBinary>
<hex></hex>
<hex/>

View File

@ -2304,7 +2304,7 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
xmlChar *base;
int total, i = 0;
if ((cur == NULL) || (*cur == 0))
if (cur == NULL)
goto return1;
while (((*cur >= '0') && (*cur <= '9')) ||