updated preparser for rulesets with attribute selectors