Name
xml_doc_get_base_uri, xml_doc_assign_base_uri — read and update the base URI of an XML entity
Synopsis
varchar xml_doc_get_base_uri(
|
in entity XML); |
xml_doc_assign_base_uri(
|
inout entity XML, |
in base_uri varchar); |
Description
xml_doc_get_base_uri returns the base URI of
entity, that is, the URI against which relative
references inside the document resolve per the XML Base specification. For
documents parsed by
xtree_doc this is
normally the base_uri passed at parse time, or the
URI of the source file. Returns SQL NULL if no base URI is attached.
xml_doc_assign_base_uri replaces the base URI of
entity with base_uri. The
change affects subsequent operations that follow relative references (e.g.
XSLT document(), XInclude resolution and
xml_uri_get) without re-parsing the document.