SiteXpert FAQ

Question ID:
Q1048
Question:
How can I create a Google Sitemap / How can I make sure Google indexes all web pages on my website?
 
Google sitemaps are a great mechanism to make sure your whole web site gets indexed by Google and other search engines. Even if your website uses a navigation based on JavaScript (e.g. DHTML menu-based), all the pages get indexed.

With SiteXpert you can easily create a Google sitemap (plus you can automatically have it updated periodically to reflect changes in your website). To do this, simply choose the Google Sitemap style in options/style (with v8 you should choose "GoogleSitemap" in options/schemes). With this configuration, the program will output a Google sitemap in form of an XML file.

If using v9 of SiteXpert, you can also export other information into the sitemap, such as last modification date, document priority or update frequency. In Options/Google Sitemap you can decide which information is to be exported, and in the main window (layout tab) you can set/change these properties for every document. Please note that re-indexing will remove your modifications only if 'erase old layout before starting layout wizard' is selected in the last step of layout wizard.

Click here to find out more about Google sitemaps

Note: if you are using version version earlier than 8.0.1 of SiteXpert, you will not find the "GoogleSitemap" scheme included with the program. In such case, first change the output style in options/style to "custom XSLT style". Then change the tab to "XSLT properties" and in "XSLT transformation script" enter:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" version="4.0" omit-xml-declaration="yes"/>
<xsl:template match="/">
  <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
  <xsl:text>&#10;</xsl:text>
  <![CDATA[<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">]]>
  <xsl:text>&#10;</xsl:text>
	 <xsl:apply-templates />
  <![CDATA[</urlset>]]>
</xsl:template>
<xsl:template match="node">	
	<xsl:choose>
		<xsl:when test="string-length (@href) &gt; 0">
			<xsl:text>&#9;</xsl:text>
			<![CDATA[<url>]]>
			<xsl:text>&#10;</xsl:text>
				<xsl:text>&#9;</xsl:text>
				<xsl:text>&#9;</xsl:text>
				<![CDATA[<loc>]]><xsl:value-of select="@href"/><![CDATA[</loc>]]>
				<xsl:text>&#10;</xsl:text>
			<xsl:text>&#9;</xsl:text>
			<![CDATA[</url>]]>
			<xsl:text>&#10;</xsl:text>			
		</xsl:when>	
		<xsl:otherwise>
		</xsl:otherwise>
	</xsl:choose>	
	
	<xsl:apply-templates select="node"/>
</xsl:template>
</xsl:stylesheet>