XML Sitemaps Generator

Author Topic: Sitemap.html has more colspans than columns in it's structure (HTML5 ERROR)  (Read 8279 times)


  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Sitemap.html is generated using <td colspan="<TVAR level100>"> which on first pass put the colspan value at 100. This is not a strictly correct method as the table does not have that many columns in its structure.

It is however acceptable by the XHTML 1.0 Transitional validator but if we convert to HTML5 (as we should all be doing) then we get an error generated by the validator saying "Table columns in range 5100 established by element td have no cells beginning in them."

Can we have a fix please

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10903

you can use the following code in generator/pages/mods/sitemap_tpl.html template file:

Code: [Select]
<TLOOP slots>
<tr valign="top">
<td class="lpart">
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<TLOOP alevel><td class="lbullet">&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td width="100%">
<div class="lhead"><TVAR folder><span class="lcount"><TVAR cnt> <TIF cntmulti>pages<TELSE>page</TIF></span></div>

<table cellspacing="0" cellpadding="0" width="100%">
<TLOOP pages>
<tr><td class="lpage"><a href="<TVAR link>" title="<TVAR title_clean>"><TVAR title></a>
<TIF desc><br /><small><TVAR desc></small></TIF>



(find existing <TLOOP slots>...</TLOOP> part and replace with the code above)
Oleg Ignatiuk
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.


  • Registered Customer
  • Approved member
  • *
  • Posts: 6
 Thank you for the prompt reply and solution that works.

Note for others: Of course still had to change the new code in as far as formatting the table with CSS to comply with HTML5.

Kind Regards


SMF 2.0.14 | SMF © 2017, Simple Machines