Returns the namespace prefix part of the given XML name.
For example, when the whole name is
this property will return:xs:complexType
The namespace prefix is a variable thing. Exactly, it depends on the context (i.e. the location within the XML document) where the XML name is used. The functionxs
adaptQName()
allows adapting the prefix property
of the given QName object according to a new context.
Note: If the XML Type associated with this template is defined to be namespace-unaware, this property always returns an empty string (no matter, whether the whole name starts with "prefix:").