Re: Integrate Sitemap based on google xml.
sac sha <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Florent This is the xsl which we use to generate google format for sitemaps: <xsl:template match="/"> <xsl:apply-templates select="sm:site" /> </xsl:template> <xsl:template match="sm:site" xmlns=""> <xsl:element name="urlset" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <xsl:variable name="siteurl"><xsl:value-of select="www.example.com"/></xsl:variable> <xsl:for-each select="sm:node"> <xsl:sort select="sm:label"/> <xsl:element name="url"> <xsl:element name="loc"><xsl:value-of select="concat($siteurl,'/',@id,'.html')"/></xsl:element> </xsl:element> </xsl:for-each> </xsl:element> </xsl:template> HTH Regards Sac On Tue, Apr 13, 2010 at 9:40 PM, florent andré <[email protected]> wrote: > Yes sure, if you can send it, it will give me a good entry point. > thanks > > Vik Tara wrote: >> >> Sachin - maybe Florent could benefit from the xsl? >> >> Regards >> >> >> Vik >> >> On 13/04/10 15:32, florent andré wrote: >> >>> >>> Ok, thanks. >>> >>> I will try to miplement something based on navigation module like >>> Andreas suggests. >>> >>> Some news about it could come soon... >>> >>> Have a good day >>> >>> sac sha wrote: >>> >>>> >>>> Hi Andre >>>> >>>> Sorry for replying late. >>>> >>>> Actually the way we have done this is pretty simple. >>>> >>>> We used a transformer(xslt) to convert sitetree xml into the google >>>> format xml for generating the sitemap. >>>> >>>> Regards >>>> Sac >>>> >>>> On Fri, Apr 9, 2010 at 5:27 PM, Florent André >>>> <[email protected]> wrote: >>>> >>>>> >>>>> Hi Sac, Vik and all Lenya people, >>>>> >>>>> I look like to continue on this subject : >>>>> >>>>> http://mail-archives.apache.org/mod_mbox/lenya-user/200903.mbox/%[email protected]%3E >>>>> >>>>> >>>>> Do you have develop something on it that you can share ? >>>>> >>>>> I have to work on a google's sitemap generator this year, so if you >>>>> have >>>>> some public code, I could work on it and share result to the Lenya >>>>> community. >>>>> >>>>> Have a good day >>>>> >>>>> On Mon, 09 Mar 2009 14:32:54 +0100, Andreas Hartmann >>>>> <[email protected]> >>>>> wrote: >>>>> >>>>>> >>>>>> Thomas Comiotto schrieb: >>>>>> >>>>>>> >>>>>>> There's also a sitetree generator.. >>>>>>> >>>>>> >>>>>> I agree to Thomas that you shouldn't use the sitetree XML directly. It >>>>>> is not part of the API, therefore backwards compatibility is not >>>>>> guaranteed. >>>>>> >>>>>> You could use the navigation module instead: >>>>>> >>>>>> http://lenya.apache.org/docu20/standardmodules/navigation.html >>>>>> >>>>>> -- Andreas >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Am 09.03.2009 um 13:25 schrieb Vik Tara: >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> Couldn't we use xsl to transform sitetree.xml into whatever format >>>>>>>> google is looking for? >>>>>>>> >>>>>>>> That would keep it simple. >>>>>>>> >>>>>>>> Regards >>>>>>>> >>>>>>>> >>>>>>>> Vik >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> nishkam wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> there are some existing tools which you can use to generate >>>>>>>>> sitemap , >>>>>>>>> all you need is to enter full http path , tool will travarse your >>>>>>>>> website and generate the required xml output and this also work >>>>>>>>> for lenya absed sites. >>>>>>>>> >>>>>>>>> http://www.xml-sitemaps.com/ >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Mar 9, 2009 at 5:19 PM, sac sha <[email protected] >>>>>>>>> <mailto:[email protected]>> wrote: >>>>>>>>> >>>>>>>>> Hi All >>>>>>>>> >>>>>>>>> I need to create sitemap for my website using google xml format >>>>>>>>> >>>>> >>>>> for >>>>> >>>>>>>>> >>>>>>>>> sitemap. And that xml should be updated on adding or removing a >>>>>>>>> page accordingly as lenya's existing sitetree.xml. >>>>>>>>> I wonder if anybody has already done it? Please let me know the >>>>>>>>> method. >>>>>>>>> >>>>>>>>> Thanks in advance. >>>>>>>>> >>>>>>>>> Sac >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> Bhavya Sharma >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> --------------------------------------------------------------------- >>>>>>>> >>>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>>> For additional commands, e-mail: [email protected] >>>>>>>> >>>>>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >