in doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/Xhtml5BaseSink.java [536:577]
public void numberedList(int numbering, SinkEventAttributes attributes) {
if (paragraphFlag) {
// The content of element type "p" must match
// "(a|br|span|bdo|object|applet|img|map|iframe|tt|i|b|u|s|strike|big|small|font|basefont|em|strong|
// dfn|code|q|samp|kbd|var|cite|abbr|acronym|sub|sup|input|select|textarea|label|button|ins|del|script)".
paragraph_();
}
String olStyle = "list-style-type: ";
switch (numbering) {
case NUMBERING_UPPER_ALPHA:
olStyle += "upper-alpha";
break;
case NUMBERING_LOWER_ALPHA:
olStyle += "lower-alpha";
break;
case NUMBERING_UPPER_ROMAN:
olStyle += "upper-roman";
break;
case NUMBERING_LOWER_ROMAN:
olStyle += "lower-roman";
break;
case NUMBERING_DECIMAL:
default:
olStyle += "decimal";
}
olStyle += ";";
MutableAttributeSet atts = SinkUtils.filterAttributes(attributes, SinkUtils.SINK_SECTION_ATTRIBUTES);
if (atts == null) {
atts = new SinkEventAttributeSet(1);
}
if (atts.isDefined(SinkEventAttributes.STYLE)) {
olStyle += " " + atts.getAttribute(SinkEventAttributes.STYLE).toString();
}
atts.addAttribute(SinkEventAttributes.STYLE, olStyle);
writeStartTag(HtmlMarkup.OL, atts);
}