//write the list of books
Document doc = DomBoostUtils.createDefaultDocumentBuilder().newDocument();
Element body = createHtml(doc, documentationNode.getAttributes().getName(), HTML.Tag.BODY);
Element list = DomBoostUtils.appendElement(doc, body, HTML.Tag.UL);
for (BoostedNode zoomInFocusPoint: documentationNode.getAllZoomInFocus()){
BoostedNode zoomInNode = documentationNode.getZoomIn(zoomInFocusPoint, null);
Object subtype = zoomInNode.getAttributes().getType();
if (BookBoostUtils.BOOK.equals(subtype)) {
Element li = DomBoostUtils.appendElement(doc, list, HTML.Tag.LI);
File directory = documentationContext.getFromAttributesMap(File.class);
DomBoostUtils.appendElement(
doc,
li,
HTML.Tag.A,
ContainerBoostUtils.createMap("href",
zoomInNode
.getAttributes().getName()/*
* directory .
* getName ( )
*/
+ "/index.html", "target", "content"),
zoomInNode.getAttributes().getName());
}
}
OutputStream out = getOutputStream(documentationContext, documentationNode, "booklist.html");
DomBoostUtils.write(doc, out);
out.close();