Section Numbering in Styler
Hello,
I am creating a stylesheet for a customer whose style guidelines require a footer/graphic/table numbering system that looks like this:
3.05-5
The first digit is the chapter number, the second two the sect1 number, and the last the page/graphic/table number.
I can get the chapter and page/graphic/table numbers easily, using the defaults available in generated text. My problem is with the sect1 numbering - again, I can get the simple 1, 2, 3, etc., with no problem, but the requirement is for two digits, starting at 00, then incrementing by five for each new sect1 in a given chapter. This would give a series 00, 05, 10, 15 and so on.
The logic I've worked out is:
if sect1 < 3("0"+(((sect1)*5)-5)), else (((sect1)*5)-5)
My problem is that I don't know how to do this in generated text. Would it be in ACL, XPath or would Javascript be appropriate? Would it be something else entirely?
Any help greatly appreciated! Thank you.
John Laidlaw

