ISIXmlSection rootSection = (ISIXmlSection) rs;
WebMarkupContainer rootSectionContainer = new WebMarkupContainer(chapterRepeater.newChildId());
chapterRepeater.add(rootSectionContainer);
// Chapter that contains the bookmark is open by default.
if (rootSection.equals(currentRootSection))
rootSectionContainer.add(new ClassAttributeModifier("open"));
rootSectionContainer.add(new Label("chapterTitle", rootSection.getTitle()));
ISIXmlComponent xml = new ISIXmlComponent("chapterContent", new XmlSectionModel(rootSection), "toc");
xml.setTransformParameter("sectionToggleLinks", getSectionToggleParameter());
xml.setTransformParameter("sectionLevel", sectionLevel);
if (currentPage != null)