Class FnBaseUri


  • public final class FnBaseUri
    extends Object
    Since a node doesn't have a base URI in Metaschema, this is an alias for the document-uri function.
    • Method Detail

      • fnBaseUri

        @Nullable
        public static IAnyUriItem fnBaseUri​(INodeItem nodeItem)
        Get the base URI for the provided nodeItem.

        Based on the XPath 3.1 fn:base-uri function.

        Parameters:
        nodeItem - the node to get the base URI from
        Returns:
        the base URI, or null if the node is either null or doesn't have a base URI