Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

draft site ok but published site not working

Go to End

2 Posts   1396 Views


Community Member, 211 Posts

6 February 2009 at 6:30am


I'm curently working on the basic tutorial .
I'm at the step "Adding a second level"

I did what was written and this is how my looks like :(the code is below)

The weird thing is that if I click on draft site the web site looks ok with submenus but if I try to see published site I get :

Erreur d'analyse XML : balise ne correspondant pas. Attendu : </ul>.
Emplacement :
Numéro de ligne 59, Colonne 6 : </div>

it is in french bur it means that the awaited tag is wrong it should be </ul> but it reads </div>

any idea (i'm workin on firefox 3)


----------- code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en" >
<% base_tag %>

<div id="Main">
<ul id="Menu1">
<% control Menu(1) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
<% end_control %>
<div id="Header">
<div id="ContentContainer">
<% if Menu(2) %>
<ul id="Menu2">

<% control Menu(2) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
<% end_control %>
<% end_if %>
<div id="Content" class="typography">
<div id="Footer">
<span>Visit <a href="" title="Visit"></a>; to download the CMS</span>


Community Member, 6 Posts

7 February 2009 at 2:28am

Edited: 07/02/2009 2:29am

This could be caused by the first line in the .ss file:
<?xml version="1.0" encoding="UTF-8"?>

This demands more rigid coding for a page to be valid.
In the case you mentioned you have to add closing </ul> tags (and I guess a couple of other errors will pop up after that).

Basically you have two choices:
1. (Lazy) remove the first line
2. (Robust, probably better in the long run) learn about the requirements to produce XHTML (e.g.

Hope this helps,