0 items is invalid, 1 or more items are valid
But don't take my word for it! The only way to settle this is by running it through W3 Validator service.
I mean, anyone is semantically anal about XHTML, it's gotta be them!
Here's my input:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Doc title</title>
<meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />
<meta http-equiv="content-style-type" content="text/css" />
</head>
<body>
<div>
<h3>List with no items</h3>
<ul>
</ul>
<h3>List with one item</h3>
<ul>
<li>Only one</li>
</ul>
<h3>List with two items</h3>
<ul>
<li>One</li>
<li>Two</li>
</ul>
</div>
</body>
</html>
And here's the result:
Validation Output: 1 Error
Error Line 15, Column 5: end tag for "ul" which is not finished
</ul>
Most likely, you nested tags and closed them in the wrong order. For
example e
<p><em>...</p> is
not acceptable, as <em> must be
closed before <p>. Acceptable
nesting is:
<p><em>...</em></p>
Another possibility is that you used an element which requires a child
element that you did not include.
Hence the parent element is "not
finished", not complete. For instance,
in HTML the element must
contain a child element, lists
(ul, ol, dl) require list items (li,
or dt, dd), and so on.
The relevant bit here of course is "you used an element which requires a child element that you did not include
"
Try it for yourself!