block.element = content.getElement(); if(block.element != null) { if(block.element.hasAttribute("id")) { c.addIDBox(block.element.getAttribute("id"),block); } }
Element element = content.getElement(); if (element != null) { String id = c.getNamespaceHandler().getID(element); if (id != null && !id.equals("")) { c.addIDBox(id, block); } }
    public static Box preLayout(Context c, Content content) {        Box block = null;        if (content instanceof AnonymousBlockContent) {            return AnonymousBoxing.layout(c, content);        } else if (content instanceof TableContent) {            return TableBoxing.layout(c, content);        } else {            block = new BlockBox();        }        block.element = content.getElement();		if(block.element != null) {			if(block.element.hasAttribute("id")) {				c.addIDBox(block.element.getAttribute("id"),block);			}		}        return block;    }