return context.getNextFootnoteNumber();
}
public static Node getFootnote(AbstractWmlConversionContext context, String id) {
WordprocessingMLPackage wmlPackage = context.getWmlPackage();
CTFootnotes footnotes = wmlPackage.getMainDocumentPart().getFootnotesPart().getJaxbElement();
int pos = Integer.parseInt(id);
// No @XmlRootElement on CTFtnEdn, so ..
CTFtnEdn ftn = (CTFtnEdn)footnotes.getFootnote().get(pos);
Document d = XmlUtils.marshaltoW3CDomDocument( ftn,
Context.jc, Namespaces.NS_WORD12, "footnote", CTFtnEdn.class );
if (log.isDebugEnabled()) {
log.debug("Footnote " + id + ": " + XmlUtils.w3CDomNodeToString(d));
}