/* Set a CSS counter using counter-reset (starts at 0) */
body {
counter-reset: sectionNum;
counter-reset: subtitleNum;
}
/* Increment sectionNum counter at each .Section element
Reset subtitleNum counter at each .Section element
*/
.Section {
counter-increment: sectionNum;
counter-reset: subtitleNum;
}
/* Display sectionNum value before each Section Title */
.Section>.Title::before {
content: counter(sectionNum, upper-alpha) ". ";
}
/* Increment subtitleNum counter at each Subtitle in a Section */
.Section>.Subtitle {
counter-increment: subtitleNum;
}
/* Display subtitleNum value before the text contents of the Section's Subtitle */
.Section>.Subtitle>.XmlSchemaText::before {
content: counter(subtitleNum) ". ";
}