javacsscoldfusionparsingsac

CSS Parser in ColdFusion or Java?


I'm building something that requires a simple HTML frontend for editing some properties in CSS. However, I need to get the value specified by a CSS file.

The only parser I can find is CSS Parser Project , and it is in Java. It implements both Document Object Model Level 2 Style & SAC: The Simple API for CSS API. It should work, but we have not tried. Any tutorial on this project or the API's?

Another solution my team can think of is to push that responsibility to the client's browser + jQuery. However, it doesn't seem very reliable and efficient.

Regular expression does not seem to be the right tool for fishing out properties from CSS.

Anyone has a better/simpler solution? Thanks!


Solution

  • http://sourceforge.net/projects/cssparser/