From: Vincent M. <vi...@ma...> - 2017-05-16 16:19:06
|
Hi guys, On the XWiki project (http://xwiki.org) we’re currently using CSS4J but it’s painful (several bugs, no issue tracker, no mailing list) so we’re considering migrating to another library and we’re looking at CSSParser. We use CSS4J to do the following: apply some CSS content to XHTML. For example: CSS: "span { color:red; }" XHTML: ... <div id=“xwikicontent"> <p><span style="background: white;">Hello</span></p> </div> … Result: ... <div id=“xwikicontent"> <p><span style="background: white; color: red;">Hello</span></p> </div> … Is that possible to do with CSSParser? FTR this is our code where we use CSS4J: * https://github.com/xwiki/xwiki-platform/blob/30d27eb8ec23f7c5a28ca505a75f1c73f8fe0073/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/pdf/impl/PdfExportImpl.java#L460-L460 * https://github.com/xwiki/xwiki-platform/blob/30d27eb8ec23f7c5a28ca505a75f1c73f8fe0073/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/pdf/impl/PdfExportImpl.java#L506 Thanks -Vincent |