Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.
Include CFML template
For the sake of simplicity here I have split my site template into two files pagetop.cfm and pagebottom.cfm. This is not the only or best way of doing it, it just best illustrates the technique.
Note: Notice that as with the dynamic sitemap example there is no space between the cfoutput tag and the first xsl tag.
<cfsetting enablecfoutputonly="true" showdebugoutput="false">
<!---Override site default doc type--->
<cfset doctypeOverride = true>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<tr style="border-bottom:1px black solid;">
Step 4: Test and Debug Encoding
At this stage you should be able to visit your sitemap and see a list of hyperlinks inside your standard site template. However it is more likely that you will see an error.
The reason you are likely to see an error is because xsl requires certain characters to be encoded in a particular way. For example the "&" symbol should be encoded as "&". My advice would be to comment out your entire template layout then slowly add back elements and tackle each encoding issue as you go.
If you have managed to read this far then congrats. I hope I did not bore you too much. I know this has been a long one but I felt it was worth the extra effort to explain how xsl works.