Package pyxb :: Package namespace :: Module builtin |
[hide private]
[frames] | no frames]

# Module builtin

source code

Classes and global objects related to built-in XML Namespaces.

Classes | [hide private]
_XMLSchema_instance Extension of Namespace that pre-defines components available in the XMLSchema Instance namespace.
_XML Extension of Namespace that pre-defines components available in the XML (xml) namespace.
_XMLSchema Extension of Namespace that pre-defines components available in the XMLSchema namespace.

Functions | [hide private]
_InitializeBuiltinNamespaces(structures_module) Invoked at the end of the pyxb.xmlschema.structures module to initialize the component models of the built-in namespaces. | source code

Variables | [hide private]
| _log = `logging.getLogger(__name__)`
| BuiltInObjectUID = `pyxb.utils.utility.UniqueIdentifier('PyXB-1`...``
| XMLSchema_instance = `_XMLSchema_instance('http://www.w3.org/20`...`` Namespace and URI for the XMLSchema Instance namespace.
| XMLNamespaces = `Namespace('http://www.w3.org/2000/xmlns/', des`...`` Namespaces in XML.
| XMLSchema = `pyxb.namespace.XMLSchema` Namespace and URI for the XMLSchema namespace (often `xs`, or `xsd`)
| XHTML = `Namespace('http://www.w3.org/1999/xhtml', description=`...`` There really isn't a schema for this, but it's used as the default namespace in the XML schema, so define it.
| XML = `pyxb.namespace.NamespaceForURI('http://www.w3.org/XML/19`...`` Namespace and URI for XML itself (always available as `xml`)
| XMLSchema_hfp = `Namespace('http://www.w3.org/2001/XMLSchema-ha`...`` Elements appearing in appinfo elements to support data types.
| BuiltInNamespaces = `[XMLSchema_instance, XMLSchema_hfp, XMLSch`...``
| __InitializedBuiltinNamespaces = `True`
| _UndeclaredNamespaceMap = `{}`
| __package__ = ``'``pyxb.namespace``'``
| _ns = `Namespace('http://www.w3.org/1999/xhtml', description= '`...``

Function Details | [hide private]

### _InitializeBuiltinNamespaces(structures_module) | source code
Invoked at the end of the pyxb.xmlschema.structures module to initialize the component models of the built-in namespaces. Parameters: `structures_module` - The pyxb.xmlschema.structures module may not be importable by that name at the time this is invoked (because it is still being processed), so it gets passed in as a parameter.

Variables Details | [hide private]

  ### BuiltInObjectUID Value:
      pyxb.utils.utility.UniqueIdentifier('PyXB-1.2.3-Builtin')

  ### XMLSchema_instance Namespace and URI for the XMLSchema Instance namespace. This is always built-in, and does not (cannot) have an associated schema. Value:
      _XMLSchema_instance('http://www.w3.org/2001/XMLSchema-instance', descr
      iption= 'XML Schema Instance', builtin_namespace= 'XMLSchema_instance'
      )

  ### XMLNamespaces Namespaces in XML. Not really a namespace, but is always available as `xmlns`. Value:
      Namespace('http://www.w3.org/2000/xmlns/', description= 'Namespaces in
       XML', builtin_namespace= 'XMLNamespaces', is_undeclared_namespace= Tr
      ue, bound_prefix= 'xmlns')

  ### XHTML There really isn't a schema for this, but it's used as the default namespace in the XML schema, so define it. Value:
      Namespace('http://www.w3.org/1999/xhtml', description= 'Family of docu
      ment types that extend HTML', builtin_namespace= 'XHTML', default_name
      space= XMLSchema)

  ### XML Namespace and URI for XML itself (always available as `xml`) Value:
      pyxb.namespace.NamespaceForURI('http://www.w3.org/XML/1998/namespace',
       create_if_missing= True)

  ### XMLSchema_hfp Elements appearing in appinfo elements to support data types. Value:
      Namespace('http://www.w3.org/2001/XMLSchema-hasFacetAndProperty', desc
      ription= 'Facets appearing in appinfo section', builtin_namespace= 'XM
      LSchema_hfp', default_namespace= XMLSchema, in_scope_namespaces= {'hfp
      ': None, 'xhtml': XHTML})

  ### BuiltInNamespaces Value:
      [XMLSchema_instance, XMLSchema_hfp, XMLSchema, XMLNamespaces, XML, XHT
      ML]

  ### _ns Value:
      Namespace('http://www.w3.org/1999/xhtml', description= 'Family of docu
      ment types that extend HTML', builtin_namespace= 'XHTML', default_name
      space= XMLSchema)