final LayoutStyle layoutContext = element.getLayoutStyle();
final CSSValue value =
layoutContext.getValue(ListStyleKeys.LIST_STYLE_IMAGE);
if (value != null)
{
final ContentToken token = createToken(process, element, value);
if (token != null)
{
contentSpecification.setContents(new ContentToken[]{token});
return;
}
}
final ContentToken token = createToken(process, element, listCounter);
if (token instanceof CounterToken)
{
final CounterToken counterToken = (CounterToken) token;
final CounterStyle style = counterToken.getStyle();
final String suffix = style.getSuffix();