code: public void updateContextWithElementAttributes(final Attributes attributes)
              throws XIncludeFatalException
      {
          extractCurrentBaseURI(attributes);
          if (ofNullable(this.currentBaseURI).isPresent())
          {
              addBaseURIPath(this.currentBaseURI);
          }
      }
docs: Update context with element attributes.
  
  @param attributes the attributes
  @throws XIncludeFatalException if attribute xml:base is invalid