// Add to the master list
final int rc = initialStyleSheet.getRuleCount();
for (int i = 0; i < rc; i++)
{
final StyleRule rule = initialStyleSheet.getRule(i);
if (rule instanceof CSSDeclarationRule)
{
final CSSDeclarationRule drule = (CSSDeclarationRule) rule;
copyStyleInformation(initialStyle, drule, null);
}