aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-08-26 07:46:42 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-08-26 07:46:42 +0000
commitbf9c1dad3a7d17f9207756a5b0e3a3efdba34c1b (patch)
tree1cfb2615e0ec828b692fd80c2295ad6716664985 /test
parent54bd29b79bf2e9375aa369361020814e5d6a0f3a (diff)
downloadandroid_external_libxml2-bf9c1dad3a7d17f9207756a5b0e3a3efdba34c1b.tar.gz
android_external_libxml2-bf9c1dad3a7d17f9207756a5b0e3a3efdba34c1b.tar.bz2
android_external_libxml2-bf9c1dad3a7d17f9207756a5b0e3a3efdba34c1b.zip
add the testchar to 'make check' Volker Grabsch pointed out a typo
* Makefile.am: add the testchar to 'make check' * xmlschemas.c: Volker Grabsch pointed out a typo * xmlregexp.c: production [19] from XML Schemas regexps were a mistake removed in version REC-xmlschema-2-20041028, Volker Grabsch provided a patch to remove it * test/schemas/regexp-char-ref_0.xml test/schemas/regexp-char-ref_0.xsd test/schemas/regexp-char-ref_1.xsd result/schemas/regexp-char-ref_0_0 result/schemas/regexp-char-ref_1_0: Volker Grabsch also provided regession tests for this Daniel svn path=/trunk/; revision=3776
Diffstat (limited to 'test')
-rw-r--r--test/schemas/regexp-char-ref_0.xml7
-rw-r--r--test/schemas/regexp-char-ref_0.xsd20
-rw-r--r--test/schemas/regexp-char-ref_1.xsd20
3 files changed, 47 insertions, 0 deletions
diff --git a/test/schemas/regexp-char-ref_0.xml b/test/schemas/regexp-char-ref_0.xml
new file mode 100644
index 00000000..f6f463e0
--- /dev/null
+++ b/test/schemas/regexp-char-ref_0.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+
+<test test1="5"
+ test2="6"
+ test3="#"
+ test4=";"
+ test5="&amp;" />
diff --git a/test/schemas/regexp-char-ref_0.xsd b/test/schemas/regexp-char-ref_0.xsd
new file mode 100644
index 00000000..2d91c6c6
--- /dev/null
+++ b/test/schemas/regexp-char-ref_0.xsd
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="test">
+ <xs:complexType>
+ <xs:attribute name="test1" type="myType"/>
+ <xs:attribute name="test2" type="myType"/>
+ <xs:attribute name="test3" type="myType"/>
+ <xs:attribute name="test4" type="myType"/>
+ <xs:attribute name="test5" type="myType"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:simpleType name="myType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[56;&amp;#]"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
diff --git a/test/schemas/regexp-char-ref_1.xsd b/test/schemas/regexp-char-ref_1.xsd
new file mode 100644
index 00000000..598a4d53
--- /dev/null
+++ b/test/schemas/regexp-char-ref_1.xsd
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="test">
+ <xs:complexType>
+ <xs:attribute name="test1" type="myType"/>
+ <xs:attribute name="test2" type="myType"/>
+ <xs:attribute name="test3" type="myType"/>
+ <xs:attribute name="test4" type="myType"/>
+ <xs:attribute name="test5" type="myType"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:simpleType name="myType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[&amp;#65;]"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>