Next / Previous / Contents / TCC Help System / NM Tech homepage

4.3. Manifest constants

pyrang
# - - - - -   M a n i f e s t   c o n s t a n t s

All Relax NG schemas are in this namespace NSURI:

pyrang
RNG_NS = "http://relaxng.org/ns/structure/1.0"

Here we define symbolic constants for two element names and an attribute name from the Relax NG schema document type. The NSURI is part of the name.

pyrang
ELEMENT_N = "{{{0}}}element".format(RNG_NS)
ATTRIBUTE_N = "{{{0}}}attribute".format(RNG_NS)
NAME_A = 'name'