Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
Classes | |
ParticleCounter An helper class for counting total min/max occurrences of XSD particles. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
XSD_FINAL_ATTRIBUTE_VALUES = {'restriction', 'extension', 'lis
|
|
NAMESPACE_PATTERN = re.compile(r'{([^}]*)}')
|
Function Details |
Returns an expanded QName from URI and local part. If any argument has boolean value `False` or if the name is already an expanded QName, returns the *name* argument. :param uri: namespace URI :param name: local or qualified name :return: string or the name argument
|
Return the local part of an expanded QName. If the name is `None` or empty returns the *name* argument. :param qname: an expanded QName or a local name.
|
Transforms a fully qualified name into a prefixed name using a namespace map. Returns the *qname* argument if it's not a fully qualified name or if it has boolean value `False`. :param qname: a fully qualified name or a local name. :param namespaces: a map from prefixes to namespace URIs. :return: string with a prefixed or local reference.
|
Returns the annotation of an XSD component. :param elem: ElementTree's node :return: The first child element containing an XSD annotation, `None` if the XSD information item doesn't have an annotation.
|
Returns an iterator for XSD child components, excluding the annotation. :param elem: the parent Element. :param start: the start child component to yield, the optional annotation is not counted. With the default value 0 starts from the first component.
|
Returns the first XSD component child, excluding the annotation. :param elem: the parent Element. :param required: if `True`, that is the default, raises a *ValueError* if there is not any component; with `False` in those cases `None` is returned. :param strict: raises a *ValueError* if there is more than one component.
|
Get an XML boolean attribute. :param elem: the Element instance. :param attribute: the attribute name. :param default: default value, accepted values are `True` or `False`. :return: `True` or `False`.
|
Get a derivation attribute (maybe 'block', 'blockDefault', 'final' or 'finalDefault') checking the items with the values arguments. Returns a string. :param elem: the Element instance. :param attribute: the attribute name. :param values: sequence of admitted values when the attribute value is not '#all'. :return: a string.
|
Get an XSD form attribute, checking the value. If the attribute is missing returns `None` :param elem: the Element instance. :param attribute: the attribute name (maybe 'form', or 'elementFormDefault' or 'attributeFormDefault'). :return: a string.
|
Variables Details |
XSD_FINAL_ATTRIBUTE_VALUES
|
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Fri Dec 13 15:25:22 2019 | http://epydoc.sourceforge.net |