Rasik Pandey wrote:
> The Google Sitemap generated by the GoogleSitemap Plugin creates a
last modified time.
> However, this is always the time that the file was generated, which
is not necessarily the
> time the src was last modified.
It seems to me that this could be classified as a cocoon issue.
Errr... I'm not sure what you mean. The date is currently inserted by:
<xsl:value-of
select="java:format(java:text.SimpleDateFormat.new('yyyy-MM-dd'),
java:util.Date.new())"/>
I'm not sure this could be described as a Cocoon issue, it's an issue
with the implementation of the plugin.
In my opinion we should not be adding a last-modified time until we can
add a proper one. This element is optional in the google sitemap and I
am sure that Google would appreciate no information over and above false
information.
Do you
think a map:generator could be responsible for adding this or making the
info available to the the http header if it has access to the necessary
objects.
There are a number of options:
- create a special generator that adds the last-modified time to
meta-data based on src file timestamp (as you appear to be suggesting) -
how would this then make it into the google sitemap?
- extend the link status generator so that it adds the last modified
time of the src file to its output
- wait till Ferdinand returns and hear what his expeitments at Apache
Con have turned up
- ???
Ross