@Override
 protected void select(SSPHandler sspHandler) {
   super.select(sspHandler);
   Iterator<Element> iter = getSelectionWithoutMarkerHandler().get().iterator();
   // The elements with a longdesc attribute are seen as informative.
   // They are added to the selection with marker
   while (iter.hasNext()) {
     Element el = iter.next();
     if (el.hasAttr(LONGDESC_ATTR)) {
       iter.remove();
       getSelectionWithMarkerHandler().add(el);
     }
   }
 }
Exemple #2
0
  @Override
  protected void select(SSPHandler sspHandler) {
    super.select(sspHandler);

    if (getSelectionWithoutMarkerHandler().isEmpty() && getSelectionWithMarkerHandler().isEmpty()) {
      return;
    }

    // extract not identified tables with data table markup
    extractTableWithDataTableMarkup(
        getSelectionWithoutMarkerHandler(), notIdentifiedTableWithoutDataTableMarkup);

    // extract presentation tables with data table markup
    extractTableWithDataTableMarkup(
        getSelectionWithMarkerHandler(), presentationTableWithoutDataTableMarkup);
  }