// Direct the markup to the entry ContainerInstance's content buffer.
dom = getCurrentBuffer(entryContainerInstance);
// Generate the markup.
// @todo 2005060816 annotate child with style information if it's not inherited from the parent
Element element = dom.openStyledElement("subdialog", attributes);
// set any attribute values that should be applied for all form fields.
addFormFieldAttributes(element, attributes);
element.setAttribute("name", name);
element.setAttribute("src", "#" + subId);