mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
merged the current state of XML Schemas implementation, it is not
* Makefile.am TODO_SCHEMAS configure.in genUnicode.py testAutomata.c testRegexp.c testSchemas.c xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c include/libxml/Makefile.am include/libxml/schemasInternals.h include/libxml/xmlautomata.h include/libxml/xmlregexp.h include/libxml/xmlschemas.h include/libxml/xmlschemastypes.h include/libxml/xmlunicode.h include/libxml/xmlversion.h.in : merged the current state of XML Schemas implementation, it is not configured in by default, a specific --schemas configure option has been added. * test/automata test/regexp test/schemas Makefile.am result/automata result/regexp result/schemas: merged automata/regexp/schemas regression tests Daniel
This commit is contained in:
12
test/regexp/content
Normal file
12
test/regexp/content
Normal file
@ -0,0 +1,12 @@
|
||||
=>((a|b|c)def)
|
||||
adef
|
||||
bdef
|
||||
adefg
|
||||
aaef
|
||||
=>((a|b|c|d|e|f)?(g|h|i)+(k|l)*)
|
||||
g
|
||||
gi
|
||||
fil
|
||||
gikl
|
||||
cghhhiill
|
||||
ak
|
7
test/regexp/hard
Normal file
7
test/regexp/hard
Normal file
@ -0,0 +1,7 @@
|
||||
=>((a|b|\p{Nd}){1,2}|aaa|bbbb){1,2}
|
||||
bab
|
||||
aaca
|
||||
aaabbbb
|
||||
a0b
|
||||
aa0aaa
|
||||
b0aaa
|
6
test/regexp/ncname
Normal file
6
test/regexp/ncname
Normal file
@ -0,0 +1,6 @@
|
||||
=>[\i-[:]][\c-[:]]*
|
||||
a
|
||||
abc
|
||||
abc1d
|
||||
1ac
|
||||
a1b:c
|
15
test/regexp/ranges
Normal file
15
test/regexp/ranges
Normal file
@ -0,0 +1,15 @@
|
||||
=>a{2,3}
|
||||
a
|
||||
aa
|
||||
aaa
|
||||
aaaa
|
||||
=>ba{2,3}c
|
||||
bac
|
||||
baac
|
||||
baaac
|
||||
baaaac
|
||||
=>a(b|c){2,3}d
|
||||
abcd
|
||||
acccd
|
||||
abd
|
||||
accccd
|
37
test/regexp/xpath
Normal file
37
test/regexp/xpath
Normal file
@ -0,0 +1,37 @@
|
||||
=>(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)*
|
||||
a
|
||||
a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3
|
||||
*
|
||||
a|b
|
||||
.//a:b
|
||||
a/b/c
|
||||
a/*/b
|
||||
a:*/b:*/c:*
|
||||
child::a/child::b:*
|
||||
child::a/child::b:*|a/*/b|.//a:b
|
||||
1
|
||||
1ab
|
||||
a:1
|
||||
@a
|
||||
ancestor::a
|
||||
#
|
||||
# the previous regexp from the Schemas for Schemas was broken
|
||||
# here is the fixed one:
|
||||
# http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0005.html
|
||||
#
|
||||
=>(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*(\|(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*)*
|
||||
a
|
||||
a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3
|
||||
*
|
||||
a|b
|
||||
.//a:b
|
||||
a/b/c
|
||||
a/*/b
|
||||
a:*/b:*/c:*
|
||||
child::a/child::b:*
|
||||
child::a/child::b:*|a/*/b|.//a:b
|
||||
1
|
||||
1ab
|
||||
a:1
|
||||
@a
|
||||
ancestor::a
|
Reference in New Issue
Block a user