private static String expandSystemIdStrictOn(String systemId,String baseSystemId) throws URI.MalformedURIException {
  URI systemURI=new URI(systemId,true);
  if (systemURI.isAbsoluteURI()) {
    return systemId;
  }
  URI baseURI=null;
  if (baseSystemId == null || baseSystemId.length() == 0) {
    baseURI=getUserDir();
  }
 else {
    baseURI=new URI(baseSystemId,true);
    if (!baseURI.isAbsoluteURI()) {
      baseURI.absolutize(getUserDir());
    }
  }
  systemURI.absolutize(baseURI);
  return systemURI.toString();
}

private static String expandSystemIdStrictOn ( String systemId , String baseSystemId ) throws URI . MalformedURIException { URI systemURI = new URI ( systemId , true ) ; if ( systemURI . isAbsoluteURI ( ) ) { return systemId ; } URI baseURI = null ; if ( baseSystemId == null || baseSystemId . length ( ) == 0 ) { baseURI = getUserDir ( ) ; } else { baseURI = new URI ( baseSystemId , true ) ; if ( ! baseURI . isAbsoluteURI ( ) ) { baseURI . absolutize ( getUserDir ( ) ) ; } } systemURI . absolutize ( baseURI ) ; return systemURI . toString ( ) ; }
helper method for expandsystemid ( string , string , boolean ) : string
