diff --git a/src/antidote/org/apache/tools/ant/gui/acs/ACSFactory.java b/src/antidote/org/apache/tools/ant/gui/acs/ACSFactory.java index c4feb5797..56e30ed52 100644 --- a/src/antidote/org/apache/tools/ant/gui/acs/ACSFactory.java +++ b/src/antidote/org/apache/tools/ant/gui/acs/ACSFactory.java @@ -244,10 +244,24 @@ public class ACSFactory { getOwnerDocument().createElement(name); // XXX fixme. indent(node, 1); + addRequiredAttributes(retval); node.appendChild(retval); return retval; } + /** + * Add required attributes to the node. + * + * @param node the Node to add the attrinutes to. + */ + public void addRequiredAttributes(ACSElement node) { + if (node instanceof ACSDtdDefinedElement) { + ACSDtdDefinedElement dtdElement = + (ACSDtdDefinedElement) node; + dtdElement.addRequiredAttributes(); + } + } + /** * Insert a new line and indentation at the end of the given * node in preparation for a new element being added.