Class XmlBaseUtils

java.lang.Object
org.rumbledb.runtime.xml.XmlBaseUtils

public final class XmlBaseUtils extends Object
Utility methods for resolving XML Base URIs according to W3C XML Base (Second Edition) and W3C XDM 3.1.
  • Method Details

    • resolve

      public static String resolve(String base, String value)
      Resolves an xml:base attribute value against an inherited base URI.
      Parameters:
      base - The inherited absolute base URI (from parent or construction context), or null.
      value - The value of the xml:base attribute.
      Returns:
      The resolved absolute base URI string, or null if it cannot be resolved to an absolute URI.