a comparator that orders CssItems based on the selector
Id selectors have highest priority, followed by class selectors,
then path selectors, and finally single element selectors.
resolves entities around html strict, transitional and frameset dtds, along
with the entity definitions so that the code doesn't access the w3.org definitions,
which will deny access with 503 errors.