PortalTool ct = pm.getTool(selected);
if(ct != null) {
super.startElement("", "tool-functions", "tool-functions", a);
Collection funs = ct.getFunctions();
for(Iterator it = funs.iterator();it.hasNext();) {
PortalToolFunction ptf = (PortalToolFunction) it.next();
AttributesImpl attr = new AttributesImpl();
attr.addCDATAAttribute("parameter", "tools/plugins/" + ct.getId() + "/" + ptf.getFunction());
attr.addCDATAAttribute("name", ptf.getName());
attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name"); super.startElement("", "function", "function", attr);
super.endElement("", "function", "function");
}
super.endElement("", "tool-functions", "tool-functions");
}