while (it.hasNext()) {
RuleSet rs = (RuleSet)it.next();
MutableAttributeSet attrs = new SimpleAttributeSet();
Iterator pi = rs.getProperties();
while (pi.hasNext()) {
Property property = (Property)pi.next();
addCSSAttribute(attrs, CSS.getAttribute(property.getName()),
property.getValue());
}
if (attrs.getAttributeCount() == 0) {
continue;
}