public final int doWikiStartTag()
throws IOException
{
WikiEngine engine = m_wikiContext.getEngine();
WikiPage page = m_wikiContext.getPage();
String encodedName = engine.encodeName( page.getName() );
String rssURL = engine.getGlobalRSSURL();
String rssFeedURL = engine.getURL(WikiContext.NONE, "rss.jsp",
"page="+encodedName+"&mode=wiki",
true );
if( rssURL != null )
{
String siteName = Feed.getSiteName(m_wikiContext);
siteName = TextUtil.replaceEntities( siteName );
pageContext.getOut().print("<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS wiki feed for the entire site.\" href=\""+rssURL+"\" />\n");
pageContext.getOut().print("<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS wiki feed for page "+siteName+".\" href=\""+rssFeedURL+"\" />\n");
// TODO: Enable this
/*
pageContext.getOut().print("<link rel=\"service.post\" type=\"application/atom+xml\" title=\""+
siteName+"\" href=\""+atomPostURL+"\" />\n");
*/
// FIXME: This does not work always, as plugins are not initialized until the first fetch
if( "true".equals(page.getAttribute(WeblogPlugin.ATTR_ISWEBLOG)) )
{
String blogFeedURL = engine.getURL(WikiContext.NONE,"rss.jsp","page="+encodedName,true);
String atomFeedURL = engine.getURL(WikiContext.NONE,"rss.jsp","page="+encodedName+"&type=atom",true);
pageContext.getOut().print("<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS feed for weblog "+