4.3 Deliver sitemap of local pages
In addition to sitemap creation from webpage on a web site, you can also create a sitemap from web pages in your local file system before they are uploaded to the web site. This flexibility can help a developer better understand the structure of the web site by studying the relationships among links.
If you have generated a site map based on HTML files on your computer, the site map will probably not work when you upload it together with the HTML files to your web server, since the links are no longer valid. There are two ways you can get around this problem.
The easy way
Generate the sitemap again after the HTML files have been uploaded
to the server.
The hard way
First, locate the source file for the links displayed in a sitemap. In the case of a plain HTML sitemap, it is the sitemap HTML file itself. In the case of a Java Applet sitemap, it is the file named "mapsource.html" in the classes directory under the saved site map template directory.
Second, use a text editor to globally replace all local links to internet links in the link source file.
Next, upload the sitemap file(s) to the web site and use them in your
web page(s) by following the steps in either Deliver
HTML sitemap or Deliver Applet sitemap.