addRelativeValueResolver(new VisibilityResolver());
addRelativeValueResolver(new SpacingResolver
(ValueConstants.CSS_WORD_SPACING_PROPERTY));
Document document = (Document)doc;
DOMImplementationCSS impl =
(DOMImplementationCSS)document.getImplementation();
String uri = ctx.getUserStyleSheetURI();
if (uri != null) {
userAgentStyleSheet =
impl.createCSSStyleSheet("User Style Sheet", "all");
try {
CSSDocumentHandler.parseStyleSheet
((CSSOMStyleSheet)userAgentStyleSheet, uri);
} catch (Exception e) {
System.err.println(e.getMessage());