Home | Trees | Indices | Help |
|
---|
|
object --+ | NamespaceContext
Records information associated with namespaces at a DOM node.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__ContextStack =
|
|||
__TargetNamespaceAttributes =
|
|||
__pendingReferencedNamespaces = None hash(x) |
|||
__defaultNamespace = None hash(x) |
|||
__fallbackToTargetNamespace = False
|
|||
__targetNamespace = None hash(x) |
|||
__inScopeNamespaces = None Map from Namespace instances to sets of prefix strings associated with the namespace. |
|||
__inScopePrefixes = None hash(x) |
|||
__InitialScopeNamespaces =
|
|||
__InitialScopePrefixes =
|
|||
__initialScopeNamespaces = None hash(x) |
|||
__initialScopePrefixes = None hash(x) |
|||
__namespacePrefixCounter = None hash(x) |
|
|||
Inherited from |
|
str(x)
|
Make Prior contexts are retained on a LIFO stack. |
Access the currently active namespace context. If no context is active, |
Discard the currently active namespace context, restoring its predecessor. The discarded context is returned. |
The default namespace in effect at this node. E.g.,
|
Set the default namespace for the generated document. Even if invoked post construction, the default namespace will affect the entire document, as all namespace declarations are placed in the document root.
|
The target namespace in effect at this node. Usually from the
|
Map from prefix strings to Namespace
instances associated with those prefixes. The prefix |
Get the NamespaceContext instance that was assigned to the node. If none has been assigned and keyword parameters are present, create one treating this as the root node and the keyword parameters as configuration information (e.g., default_namespace).
|
Record the given namespace as one to be used in this document.
To Do:
|
Reset this instance to the state it was when created, exclusive of
XMLNS directives passed in a constructor This preserves parent context and constructor-specified prefix maps, but clears the namespace-prefix mapping of any additions made while processing namespace directives in DOM nodes, or manually added post-construction. The defaultNamespace is also retained. |
Determine the namespace context that should be associated with the given node and, optionally, its element children. Primarily this class maintains a map between namespaces and prefixes
used in QName instances. The initial map comprises the bound prefixes
(
|
Convert the provided name into an ExpandedName, i.e. a tuple of Namespace and local name. If the name includes a prefix, that prefix must map to an in-scope namespace in this context. Absence of a prefix maps to defaultNamespace(), which must be provided (or defaults to the target namespace, if that is not absent).
|
|
__TargetNamespaceAttributes
|
__inScopeNamespacesMap from Namespace instances to sets of prefix strings associated with the namespace. The default namespace is not represented.
|
__InitialScopeNamespaces
|
__InitialScopePrefixes
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Sep 18 22:33:49 2016 | http://epydoc.sourceforge.net |