{
Collection c = engine.getAttachmentManager().listAttachments(p);
for( Iterator a = c.iterator(); a.hasNext(); )
{
Attachment att = (Attachment) a.next();
Element attEl = getElement("link");
attEl.setAttribute( "rel","enclosure" );
attEl.setAttribute( "href", engine.getURL(WikiContext.ATTACH, att.getName(), null, true ) );
attEl.setAttribute( "length", Long.toString(att.getSize()) );
attEl.setAttribute( "type", getMimeType( servletContext, att.getFileName() ) );
entryEl.addContent( attEl );
}
}
catch( ProviderException ex )