Ordered lists <OL>, starting index with XHTML Strict?
Is there a way to run an ordered list from a specific index when doing XHTML Strict? Using start = n works well, but was deprecated ... The goal is to resume the index with the search call.
I have seen several references to the CSS solution, but the starting index cannot be used as an attribute in the legacy startup case.
As noted in kdgregory , counters could do this and still maintain a valid document. This article on Array Studio shows how to code this in XHTML and CSS. The following was copied from their article:
You need to write the following your CSS:
OL#page_one { counter-reset: item } OL#page_two { counter-reset: item 5 } LI { display: block } LI:before { content: counter(item) ". "; counter-increment: item; display:block; }And here is how your listings should be defined:
<ol id="page_one"> <li>Division Bell</li> <li>Atom Hearth Mother</li> <li>Relics</li> <li>Dark Side of the Moon</li> <li>Wish You Were Here</li> </ol> <ol id="page_two"> <li>The Wall</li> <li>More</li> <li>Piper at the gates of Dawn</li> <li>Final Cut</li> <li>Meddle</li> </ol>
The CSS solution should use a list counter: http://www.w3.org/TR/CSS2/generate.html#counters
And it seems that to support paging, you can simply put the hardcoded <style> element in the <head>, or set the style explicitly on the element (also did not try, therefore ymmv).
You could definitely use counters, but perhaps a more practical solution would be to use the XHTML Transitional doctype. I know that this does not answer your question, but this is one of those situations when you can finish coding walls and ceilings to do something that does not greatly benefit you.