Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 1 | =>(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)* |
| 2 | a |
| 3 | a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3 |
| 4 | * |
| 5 | a|b |
| 6 | .//a:b |
| 7 | a/b/c |
| 8 | a/*/b |
| 9 | a:*/b:*/c:* |
| 10 | child::a/child::b:* |
| 11 | child::a/child::b:*|a/*/b|.//a:b |
| 12 | 1 |
| 13 | 1ab |
| 14 | a:1 |
| 15 | @a |
| 16 | ancestor::a |
| 17 | # |
| 18 | # the previous regexp from the Schemas for Schemas was broken |
| 19 | # here is the fixed one: |
| 20 | # http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0005.html |
| 21 | # |
| 22 | =>(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*(\|(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*)* |
| 23 | a |
| 24 | a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3 |
| 25 | * |
| 26 | a|b |
| 27 | .//a:b |
| 28 | a/b/c |
| 29 | a/*/b |
| 30 | a:*/b:*/c:* |
| 31 | child::a/child::b:* |
| 32 | child::a/child::b:*|a/*/b|.//a:b |
| 33 | 1 |
| 34 | 1ab |
| 35 | a:1 |
| 36 | @a |
| 37 | ancestor::a |