Brolin Empey wrote:
On 5/7/07, Brian M Dube <[EMAIL PROTECTED]> wrote:
A custom Cocoon generator was mentioned in the previous thread for this
topic. I can't see how to get what you want without adding data to each
source file.

The idea was to add the expansion of the SVN "Id" keyword as metadata
to each source file.

I asked what was meant by "metadata", but did not receive an answer.

XDoc allows meta elements [1] similar to HTML.

I was thinking that I could include the "Id" keyword in each source
file, but in the head part of the document or somewhere else other
than the body so that the expansion of the "Id" keyword is not visible
when the document is viewed.  Maybe then I could extract the expansion
of the "Id" keyword from the source file and include it in the skin
footer of the generated static page?

For example:

<document>
  <header>
    <title>title</title>
    <meta name="svnid">$Id$</meta>
  </header>
  .
  .
  .
</document>

After setting the relevant svn properties, your custom skin could make use of this metadata as you see fit. Pelt relies on common for this part of the document. See how common handles it [2] as a reference and let us know if you get stuck.

Brian

[1]
http://forrest.apache.org/dtdx/document-v20.dtdx.html#meta

[2]
$FORREST_HOME/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl