if (node.hasChild("MarkIndex")) {
markIndex = (Integer) node.getChildValue("MarkIndex");
}
ExternalMark emark = null;
if (node.hasChild("OnlineResource")) {
emark = styleFactory.externalMark(
new OnLineResourceImpl((URI)node.getChildValue("OnlineResource")), format, markIndex);
}
else if (node.hasChild("InlineContent")) {
Icon ic = (Icon) node.getChildValue("InlineContent");
emark = styleFactory.externalMark(ic);
emark.setFormat((String) node.getChildValue("Format"));
}
mark.setExternalMark(emark);
}