Forum Bugs

Ordered list element start attribute ignored?

JohnClarke
Hi,
Is it possible that Prince ignores the start attribute for ordered lists? For example something like the following does not give the desired result:
<ol start="4">
<li>Four</li>
<li>Five</li>
</ol>
<ol start="2">
<li>Two</li>
<li>Three</li>
</ol>


Is there any way to set the start value using CSS? Other suggestions?

-John

John Clarke
Cornerstone Systems Northwest Inc.

mikeday
To start the list at number 4, apply "counter-increment: list-item 3" to the <ol> element.

(A little counter-intuitive perhaps, but it makes sense if you think about it: normally the list-item counter is 0 on the <ol>, and each <li> increments it, so the first <li> increments it to 1. So if you start the <ol> at 3, the first <li> will increment it to 4).

We may need to support the attribute directly within Prince in the future to make this more obvious. :)
JohnClarke
Yes, that will work. FYI, this case is not common enough (for us) to warrant requesting a new feature in Prince. -John

John Clarke
Cornerstone Systems Northwest Inc.