﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / Old Forums / InstantForum.NET 4.x / Suggestions &amp; Requests  / Google Sitemaps Support / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 09 Jan 2009 03:36:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>Well That sounds pretty great. Can you provide more information how to integrate that code into IF?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sun, 03 Dec 2006 06:32:54 GMT</pubDate><dc:creator>Dennis Alexander</dc:creator></item><item><title>RE: Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>Hello,&lt;br&gt;&lt;br&gt;I think I can contribute to this. A few weeks ago I finished creating a HTTP Handler in Asp.Net 2.0 which creates a Google site map from an Asp.Net 2.0 site map file:&lt;br&gt;&lt;br&gt;  ' SiteMap&lt;br&gt;  Public Class SiteMap : Implements IHttpHandler&lt;br&gt;&lt;br&gt;&lt;br&gt;    ' -- [Methods] -------------------------------------------  &lt;br&gt;&lt;br&gt;    ' Define handler process request&lt;br&gt;    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest&lt;br&gt;&lt;br&gt;      ' Get the assembly&lt;br&gt;      Dim aBy27 As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly&lt;br&gt;&lt;br&gt;      ' Get the resource stream from the assembly&lt;br&gt;      Dim sBy27 As Stream = aBy27.GetManifestResourceStream("By27.SiteMap.xsl")&lt;br&gt;&lt;br&gt;      ' Read the stream content using a XML reader&lt;br&gt;      Dim xmlrSiteMap As Xml.XmlReader = Xml.XmlReader.Create(sBy27)&lt;br&gt;&lt;br&gt;      ' Create and load XSL document&lt;br&gt;      Dim xslGoogle As XslCompiledTransform = New XslCompiledTransform&lt;br&gt;      xslGoogle.Load(xmlrSiteMap)&lt;br&gt;&lt;br&gt;      ' Create xpath document with XML document&lt;br&gt;      Dim xpathGoogle As System.Xml.XPath.XPathDocument = New System.Xml.XPath.XPathDocument(HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings("By27.Google.SiteMap.Url")))&lt;br&gt;&lt;br&gt;      ' Create memory stream&lt;br&gt;      Dim msGoogle As System.IO.Stream = New System.IO.MemoryStream&lt;br&gt;&lt;br&gt;      ' Create XSL arguments list&lt;br&gt;      Dim googleXslArguments As XsltArgumentList = New XsltArgumentList&lt;br&gt;      googleXslArguments.AddParam("By27.WebSite.Url", "", "http://" &amp; ConfigurationManager.AppSettings("By27.WebSite.Url") &amp; "/")&lt;br&gt;&lt;br&gt;      ' Transform XML document&lt;br&gt;      xslGoogle.Transform(xpathGoogle, googleXslArguments, msGoogle)&lt;br&gt;&lt;br&gt;      ' Flush the stream and set the position to 0&lt;br&gt;      msGoogle.Flush()&lt;br&gt;      msGoogle.Position = 0&lt;br&gt;&lt;br&gt;      ' Create stream reader&lt;br&gt;      Dim srGoogle As System.IO.StreamReader = New System.IO.StreamReader(msGoogle)&lt;br&gt;&lt;br&gt;      ' Display XML in browser &lt;br&gt;      context.Response.Clear()&lt;br&gt;      context.Response.ContentType = "text/xml; charset=utf-8"&lt;br&gt;      context.Response.Write(srGoogle.ReadToEnd)&lt;br&gt;      context.Response.End()&lt;br&gt;&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;    ' Define is handler is reusable&lt;br&gt;    Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable&lt;br&gt;      Get&lt;br&gt;        Return False&lt;br&gt;      End Get&lt;br&gt;    End Property&lt;br&gt;&lt;br&gt;  End Class&lt;br&gt;&lt;br&gt;And I use a XSL file embed in my DLL:&lt;br&gt;&lt;br&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br&gt;&lt;xsl:stylesheet &lt;br&gt;  version="1.0" &lt;br&gt;  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" &lt;br&gt;  xmlns="http://www.google.com/schemas/sitemap/0.84" &lt;br&gt;  xmlns:dk="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"&gt;&lt;br&gt;  &lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&gt;&lt;br&gt;	&lt;xsl:param name="Domain"/&gt;&lt;br&gt;  &lt;xsl:template match="dk:*"/&gt;&lt;br&gt;  &lt;xsl:template match="@*|text()|comment()"/&gt;&lt;br&gt;  &lt;xsl:template match="/"&gt;&lt;br&gt;    &lt;xsl:element name="urlset"&gt;&lt;br&gt;      &lt;xsl:apply-templates select="//dk:siteMapNode[@google='true']"/&gt;&lt;br&gt;    &lt;/xsl:element&gt;&lt;br&gt;  &lt;/xsl:template&gt;&lt;br&gt;  &lt;xsl:template match="dk:siteMapNode"&gt;&lt;br&gt;    &lt;xsl:element name="url"&gt;&lt;br&gt;      &lt;xsl:element name="loc"&gt;&lt;br&gt;				&lt;xsl:value-of select="$Domain" /&gt;&lt;br&gt;				&lt;xsl:value-of select="substring(@url, 3)"/&gt;&lt;br&gt;      &lt;/xsl:element&gt;&lt;br&gt;      &lt;xsl:element name="lastmod"&gt;&lt;br&gt;        &lt;xsl:value-of select="@lastmod"/&gt;&lt;br&gt;      &lt;/xsl:element&gt;  &lt;br&gt;      &lt;xsl:element name="changefreq"&gt;&lt;br&gt;        &lt;xsl:value-of select="@changefreq"/&gt;&lt;br&gt;      &lt;/xsl:element&gt;  &lt;br&gt;      &lt;xsl:element name="priority"&gt;&lt;br&gt;        &lt;xsl:value-of select="@priority"/&gt;                  &lt;br&gt;      &lt;/xsl:element&gt;&lt;br&gt;    &lt;/xsl:element&gt;&lt;br&gt;  &lt;/xsl:template&gt;&lt;br&gt;&lt;/xsl:stylesheet&gt;&lt;br&gt;&lt;br&gt;Well, this is as I use it. You can adapt it as you wish.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Miguel</description><pubDate>Mon, 20 Nov 2006 17:46:50 GMT</pubDate><dc:creator>shapper</dc:creator></item><item><title>RE: Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>Hi Jon,&lt;P&gt;Just to confirm we have looked at this. I'm hoping it will be available in a future release.&lt;P&gt;With did work with the paging links in v4.1.4 to improve SEO. &lt;P&gt;This is an important area for us as a forum is only as good as it's traffic and we will be further improving SEO.</description><pubDate>Fri, 04 Aug 2006 11:33:11 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>All,&lt;/P&gt;&lt;P&gt;    I found this nifty little tool that provides a quick way to create a sitemap.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;A title=http://www.xml-sitemaps.com/ href="http://www.xml-sitemaps.com/"&gt;http://www.xml-sitemaps.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;I hope this helps...&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;Adam&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Wed, 10 May 2006 15:33:07 GMT</pubDate><dc:creator>aestrada</dc:creator></item><item><title>RE: Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>I like this idea... that could be great for search indexing.</description><pubDate>Wed, 03 May 2006 10:07:21 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>Google Sitemaps Support</title><link>http://community.instantasp.co.uk/Topic10761-51-1.aspx</link><description>Hey Ryan,&lt;/P&gt;&lt;P&gt;     It would be great to have support for Google Sitemaps built into the forum.  This should be straightforward enough that I'm going to try writing the code for this today.  It would be a matter of writing SQL to pull all of the topics, their titles, and dates posted.  If there's no objection, I'll post the VB code here or e-mail it to you.  Can you contact me via e-mail to let me know?&lt;/P&gt;&lt;P&gt;     Thanks and InstantForum rocks!  My customers love it (&lt;a target="_blank" href="http://www.geoframeworks.com/forum"&gt;http://www.geoframeworks.com/forum&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;    Jon</description><pubDate>Wed, 03 May 2006 08:15:18 GMT</pubDate><dc:creator>jperson</dc:creator></item></channel></rss>