Questions tagged [jstyleparser]

jStyleParser is a CSS parser written in Java.

It has its own application interface that is designed to allow an efficient CSS processing in Java and mapping the values to the Java data types. It parses CSS 2.1 style sheets into structures that can be efficiently assigned to DOM elements. It is intended be the primary CSS parser for the CSSBox library. While handling errors, it is user agent conforming according to the CSS specification.

jStyleParser is a Java library for parsing CSS style sheets and assigning styles to the HTML or XML document elements according to the W3C CSS 2.1 specification. The result of the parsing is a mapping between the DOM elements and the corresponding CSS declarations. This mapping can be used either for displaying the HTML document or for performimg some further analysis on the document structure.

2 questions
9
votes
2 answers

Inline external CSS with HTML

I am looking for a java library which can inline an external CSS file with a HTML document based on its ID/class attributes. I've found jStyleParser but I am not sure if this is the right library for me. I seem to fail to understand if it can do the…
janhartmann
  • 14,713
  • 15
  • 82
  • 138
0
votes
1 answer

jStyleParser can't parse my html file

I'm trying to use the jStyleParser library ( part of the CSSBox project) to analyze the css of a generic web page and bind all the css information to the DOM of that page. My goal is, given a web page, to have a DOM tree such that, for each node, I…