protected Documentation readDocumentation(Element s) {
    String href = s.getAttributeValue("href", Catalog.xlinkNS);
    String title = s.getAttributeValue("title", Catalog.xlinkNS);
    String type = s.getAttributeValue("type"); // not XLink type
    String content = s.getTextNormalize();

    URI uri = null;
    if (href != null) {
      try {
        uri = Catalog.resolveUri(baseURI, href);
      }
      catch (Exception e) {
        errlog.format(" ** Invalid documentation href = '%s' err='%s'%n", href, e.getMessage());
        logger.debug(" ** Invalid documentation href = '{}' err='{}'", href, e.getMessage());
      }
    }

    return new Documentation(href, uri, title, type, content);
  }
protected Documentation readDocumentation(Element s) {
    String href = s.getAttributeValue("href", Catalog.xlinkNS);
    String title = s.getAttributeValue("title", Catalog.xlinkNS);
    String type = s.getAttributeValue("type"); 
    String content = s.getTextNormalize();

    URI uri = null;
    if (href != null) {
      try {
        uri = Catalog.resolveUri(baseURI, href);
      }
      catch (Exception e) {
        errlog.format(" ** Invalid documentation href = '%s' err='%s'%n", href, e.getMessage());
        logger.debug(" ** Invalid documentation href = '{}' err='{}'", href, e.getMessage());
      }
    }

    return new Documentation(href, uri, title, type, content);
  }
protected Documentation readDocumentation ( Element s ) { String href = s . getAttributeValue ( "href" , Catalog . xlinkNS ) ; String title = s . getAttributeValue ( "title" , Catalog . xlinkNS ) ; String type = s . getAttributeValue ( "type" ) ; // not XLink type String content = s . getTextNormalize ( ) ; URI uri = null ; if ( href != null ) { try { uri = Catalog . resolveUri ( baseURI , href ) ; } catch ( Exception e ) { errlog . format ( " ** Invalid documentation href = '%s' err='%s'%n" , href , e . getMessage ( ) ) ; logger . debug ( " ** Invalid documentation href = '{}' err='{}'" , href , e . getMessage ( ) ) ; } } return new Documentation ( href , uri , title , type , content ) ; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////