|
Text.XML.HXT.DOM.QualifiedName | Portability | portable | Stability | stable | Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
|
|
|
Description |
The core data types of the HXT DOM.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Namespace support for element and attribute names.
A qualified name consists of a name prefix, a local name
and a namespace uri.
All modules, which are not namespace aware, use only the localPart component.
When dealing with namespaces, the document tree must be processed by propagateNamespaces
to split names of structure "prefix:localPart" and label the name with the apropriate namespace uri
| Instances | |
|
|
|
XML names are represented by Strings, but these strings do not mix up with normal strings.
Names are always reduced to normal form, and they are stored internally in a name cache
for sharing equal names by the same data structure
|
|
|
Type for the namespace association list, used when propagating namespaces by
modifying the QName values in a tree
|
|
|
constructs a complete qualified name with namePrefix, localPart and namespaceUri.
This function can be used to build not wellformed prefix:localpart names.
The XPath module uses wildcard names like xxx:*. These must be build with mkQName
and not with mkName.
|
|
|
constructs a simple, namespace unaware name.
If the name is in prefix:localpart form and the prefix is not empty
the name is split internally into
a prefix and a local part.
|
|
|
constructs a simple, namespace aware name, with prefix:localPart as first parameter,
namspace uri as second.
see also mkName, mkPrefixLocalPart
|
|
|
old name for mkName
|
|
|
constructs a simple name, with prefix and localPart but without a namespace uri.
see also mkQName, mkName
|
|
|
Equivalent QNames are defined as follows: The URIs are normalized before comparison.
Comparison is done with equalQNameBy and equivUri
|
|
|
Comparison of normalized namespace URIs using normalizeNsUri
|
|
|
Sometimes a weaker equality relation than equalQName is appropriate, e.g no case significance in names, ...
a name normalization function can be applied to the strings before comparing. Called by equalQName and
equivQName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
access name prefix
|
|
|
access local part
|
|
|
access namespace uri
|
|
|
set name prefix
|
|
|
set local part
|
|
|
set name prefix
|
|
|
builds the full name "prefix:localPart", if prefix is not null, else the local part is the result
|
|
|
builds the "universal" name, that is the namespace uri surrounded with "{" and "}" followed by the local part
(specialisation of buildUniversalName)
|
|
|
builds an "universal" uri, that is the namespace uri followed by the local part. This is usefull for RDF applications,
where the subject, predicate and object often are concatenated from namespace uri and local part
(specialisation of buildUniversalName)
|
|
|
builds a string from the namespace uri and the local part. If the namespace uri is empty, the local part is returned, else
namespace uri and local part are combined with the combining function given by the first parameter
|
|
|
Normalization of URIs: Normalization is done by conversion into lowercase letters. A trailing "/" is ignored
|
|
|
Compute the name prefix and the namespace uri for a qualified name.
This function does not test whether the name is a wellformed qualified name.
see Namespaces in XML Rule [6] to [8]. Error checking is done with separate functions,
see isWellformedQName and isWellformedQualifiedName for error checking.
|
|
|
test for wellformed NCName, rule [4] XML Namespaces
|
|
|
test for wellformed QName, rule [6] XML Namespaces
predicate is used in filter valdateNamespaces.
|
|
|
test for wellformed QName values.
A QName is wellformed, if the local part is a NCName, the namePrefix, if not empty, is also a NCName.
predicate is used in filter valdateNamespaces.
|
|
|
test whether an attribute name is a namesapce declaration name.
If this is not the case True is the result, else
the name must be a well formed namespace name:
All namespace prefixes starting with "xml" are reserved for XML related definitions.
predicate is used in filter valdateNamespaces.
|
|
|
test for a namespace name to be well formed
|
|
|
test whether a name is a namespace declaration attribute name
|
|
|
predicate is used in filter valdateNamespaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |