} else if (e instanceof TextSElement) {// ?
TextSElement te = (TextSElement) e;
} else if (e instanceof TextAElement) {// is an hyperlink
TextAElement ta = (TextAElement) e;
String ref = ta.getAttribute("xlink:href");
HyperlinkElement a = getCurrentResource().getDocument().createHyperlinkElement("a");
if (ref.startsWith("#")) {// internal Link
a.setTitle(ta.getAttribute("xlink:href"));
getInternalLink().add(a);
} else {
a.setExternalHRef(ref);
}
dstElement.add(a);
// a.add("ciao");
traverse(ta.getFirstChild(), a);
skipChildren = true;
} else if (e instanceof TextBookmarkElement) {// is bookmark in epub can
// be used to implement
// internal link anchors
TextBookmarkElement ta = (TextBookmarkElement) e;
HyperlinkElement a = getCurrentResource().getDocument().createHyperlinkElement("a");
a.setId(ta.getAttribute("text:name"));
dstElement.add(a);
getBookmarks().put("#" + ta.getAttribute("text:name"), a);
} else if (e instanceof TextNoteElement) {// Is a footnote container
addFootnote((TextNoteElement) e, dstElement);
skipChildren = true;
} else if (e instanceof OdfDrawFrame) {
OdfDrawFrame dframe = (OdfDrawFrame) e;