forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: Add support for Googles sitemap protocol?
Date Wed, 13 Jul 2005 23:25:23 GMT
On Wed, 2005-07-13 at 23:30 +0100, Ross Gardler wrote:
> Ross Gardler wrote:
> > Rasik Pandey wrote:
> 
> ...
> 
> >>>> and include the 'lastmod' right away as that would be the key to speedy
> >>
> >>
> >>>> updates. Can we do that?
> >>
> >>
> >> Why not use rss2.0 as the format 
> >> http://www.google.com/webmasters/sitemaps/docs/en/other.html#feed
> >>  ?
> > 
> > 
> > It's not the format of the document that is a problem, that part is 
> > easy. The hard part is knowing when the page has been regnerated because 
> > of a change.
> > 
> 
> (identifying a potential solution to the problem I identified here...)
> 
> Perhaps you can use the XPathDirectoryGenerator [1] to identify when 
> files were last modified?
> 

...or
<map:generator 
        name="traverse" 
        src="org.apache.cocoon.generation.TraversableGenerator" 
        logger="sitemap.generator.traverse" 
        label="content" 
        pool-max="16"
      />

In sitemap.xmap:
<map:generate type="traverse" src="{project:content.xdocs}"/> 
gives:
<collection:collection 
    xmlns:collection="http://apache.org/cocoon/collection/1.0"
name="xdocs" 

uri="file:/home/thorsten/src/newSeed/src/documentation/content/xdocs/" 
    lastModified="1121125614000" date="7/12/05 1:46 AM" size="4096"
sort="name" 
    reverse="false" requested="true">
    <collection:collection name="images" 

uri="file:/home/thorsten/src/newSeed/src/documentation/content/xdocs/images/" 
      lastModified="1121121526000" date="7/12/05 12:38 AM" size="4096">
      <collection:resource name="group-logo.gif" 

uri="file:/home/thorsten/src/newSeed/src/documentation/content/xdocs/images/group-logo.gif"

        lastModified="1121121525000" date="7/12/05 12:38 AM"
size="1092"/>
    </collection:collection>
  </collection:collection>

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/TraversableGenerator.html
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/XPathTraversableGenerator.html

> As for using RSS, when we originally discussed this RSS was not one of 
> the supported formats, hence we did not discuss it as an option. 
> However, it certainly has advantages over a proprietary Google schema. 
> So +1 for using that if you intend on implementing this.
> 

+1

salu2

> Ross
> 
> [1] 
> http://cocoon.apache.org/2.1/userdocs/generators/xpathdirectory-generator.html
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message