Home | Trees | Indices | Help |
|
---|
|
object --+ | XML1p0e2
Regular expression support for XML Schema Data Types.
This class holds character classes and regular expressions used to constrain the lexical space of XML Schema datatypes derived from string. They are from XML 1.0 (Second Edition) and Namespaces in XML.
Unlike the regular expressions used for pattern constraints in XML Schema, which are derived from the Unicode 3.1 specification, these are derived from the Unicode 2.0 specification.
The XML Schema definition refers explicitly to the second edition of XML, so we have to use these code point sets and patterns. Be aware that subsequent updates to the XML specification have changed the corresponding patterns for other uses of XML. One significant change is that the original specification, used here, does not allow wide unicode characters.
|
|||
Inherited from |
|
|||
Char = CodePointSet(0x0009, 0x000A, 0x000D, (0x0020, 0xD7FF),
|
|||
BaseChar = CodePointSet((0x0041, 0x005A), (0x0061, 0x007A), (0
|
|||
Ideographic = CodePointSet((0x4E00, 0x9FA5), 0x3007, (0x3021,
|
|||
Letter = CodePointSet(BaseChar).extend(Ideographic)
|
|||
CombiningChar = CodePointSet((0x0300, 0x0345), (0x0360, 0x0361
|
|||
Digit = CodePointSet((0x0030, 0x0039), (0x0660, 0x0669), (0x06
|
|||
Extender = CodePointSet(0x00B7, 0x02D0, 0x02D1, 0x0387, 0x0640
|
|||
NameStartChar = CodePointSet(Letter)
|
|||
NCNameStartChar = CodePointSet(Letter)
|
|||
NameChar = CodePointSet(Letter)
|
|||
NCNameChar = CodePointSet(Letter)
|
|||
Name_pat =
|
|||
Name_re = re.compile(r'^ hash(x) |
|||
NmToken_pat =
|
|||
NmToken_re = re.compile(r'^ hash(x) |
|||
NCName_pat =
|
|||
NCName_re = re.compile(r'^ hash(x) |
|||
QName_pat =
|
|||
QName_re = re.compile(r'^
|
|
|||
Inherited from |
|
Char
|
BaseChar
|
Ideographic
|
CombiningChar
|
Digit
|
Extender
|
Name_pat
|
Name_rehash(x)
|
NmToken_pat
|
NmToken_rehash(x)
|
NCName_pat
|
NCName_rehash(x)
|
QName_pat
|
QName_re
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Nov 1 15:13:23 2012 | http://epydoc.sourceforge.net |