fixed bug #310264, basically it's about reentrancy of count based
* xmlregexp.c: fixed bug #310264, basically it's about reentrancy
of count based transition, when going though the counter must
be reset to 0
* test/schemas/bug310264* result/schemas/bug310264*: added the
regression test.
Daniel
diff --git a/test/schemas/bug310264_0.xml b/test/schemas/bug310264_0.xml
new file mode 100644
index 0000000..98f057c
--- /dev/null
+++ b/test/schemas/bug310264_0.xml
@@ -0,0 +1,41 @@
+<c xmlns="http://myns" >
+ <a/> <!-- 1 -->
+ <a/> <!-- 2 -->
+ <a/> <!-- 3 -->
+ <a/> <!-- 4 -->
+ <a/> <!-- 5 -->
+ <a/> <!-- 6 -->
+ <a/> <!-- 7 -->
+ <a/> <!-- 8 -->
+ <a/> <!-- 9 -->
+ <a/> <!-- 10 -->
+ <a/> <!-- 1 -->
+ <a/> <!-- 2 -->
+ <a/> <!-- 3 -->
+ <a/> <!-- 4 -->
+ <a/> <!-- 5 -->
+ <a/> <!-- 6 -->
+ <a/> <!-- 7 -->
+ <a/> <!-- 8 -->
+ <a/> <!-- 9 -->
+ <a/> <!-- 20 -->
+ <a/> <!-- 1 -->
+ <a/> <!-- 2 -->
+ <a/> <!-- 3 -->
+ <a/> <!-- 4 -->
+ <a/> <!-- 5 -->
+ <a/> <!-- 6 -->
+ <a/> <!-- 7 -->
+ <a/> <!-- 8 -->
+ <a/> <!-- 9 -->
+ <a/> <!-- 30 -->
+ <a/> <!-- 1 -->
+ <a/> <!-- 2 -->
+ <a/> <!-- 3 -->
+ <a/> <!-- 4 -->
+ <a/> <!-- 5 -->
+ <a/> <!-- 6 -->
+ <a/> <!-- 7 -->
+ <a/> <!-- 8 -->
+</c>
+
diff --git a/test/schemas/bug310264_0.xsd b/test/schemas/bug310264_0.xsd
new file mode 100644
index 0000000..6f2b333
--- /dev/null
+++ b/test/schemas/bug310264_0.xsd
@@ -0,0 +1,18 @@
+<xs:schema xmlns:tns="http://myns"
+ targetNamespace="http://myns"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+>
+
+ <xs:element name="a" />
+
+ <xs:complexType name="c" >
+ <xs:sequence minOccurs="2" maxOccurs="4">
+ <xs:sequence minOccurs="19" maxOccurs="20">
+ <xs:element ref="tns:a" />
+ </xs:sequence>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="c" type="tns:c" />
+
+</xs:schema>