resolveAttributeUri

fnstring resolveAttributeUri( string attrName, string attrPrefix, const string[string][] nsStack) @safe nothrow

Resolves the namespace URI for an attribute name.

Special rules:

  • "xmlns" and "xmlns:*" attributes always resolve to "http://www.w3.org/2000/xmlns/".
  • Unprefixed attributes (other than xmlns) have no namespace (empty string), because the default namespace does not apply to attributes.
  • Prefixed attributes are resolved via the namespace stack.

    Parameters

    attrNameAttribute QName.
    attrPrefixPrefix portion of the attribute QName.
    nsStackNamespace scope stack.

    Returns

    The resolved namespace URI.