<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:x="jelly:xml">
  <HEAD>
    <!-- parse TOC and export it -->
    <x:parse var="toc" xml="toc.xml" />
    <j:set scope="parent" var="toc" value="${toc}" />

    <!-- also export the caption -->
    <j:set scope="parent" var="caption" value="${caption}" />

    <d:invokeBody />
    <title>
      <x:expr select="$toc/toc/@name"/> ${IMPL_VERSION} ${IMPL_VERSION_SUFFIX} -- ${caption}
    </title>
    <j:if test="${javaNetProjectName!=null}">
      <link rel="alternate" type="application/rss+xml" href="https://${javaNetProjectName}.dev.java.net/servlets/ProjectNewsRSS" />
    </j:if>
  </HEAD>
</j:jelly>