[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] CSS Parsers & Eclipse

Hi Camille,

+1 for replacing the Batik parser in platform.ui. I know that Paul was looking for alternatives in the past. Please open a bug for it, so that we can continue the discussion.

Best regards, Lars
Platform UI Co-Lead


On Mon, Mar 2, 2015 at 2:48 PM, LETAVERNIER Camille <Camille.LETAVERNIER@xxxxxx> wrote:

Hi all,

Â

In Papyrus, weâre considering a migration to the CSS version 3 (Instead of the CSS 2.1 weâre currently using). Until now, we were partially relying on the E4 CSS Engine, and the underlying Batik/CSS Parser. However, the parser doesnât support CSS3. Weâve been investigating different CSS3 parsers for Java, and found that all parsers implementing the W3C SAC API are hardly maintained (With an exception for CSSParser [1], but it is distributed under the LGPL License, so it is not an option).

Â

So weâre now seriously considering the Phloc CSS Parser [2], which unfortunately doesnât implement SAC (So the translation is not straightforward). This means that weâll have to re-implement most of the engine as well. Are there any other projects interested in moving to a more recent version of CSS? The parser/API is the main concern here IMO, since CSS3 is split into several optional modules (You can simply ignore some of the parsed elements if you donât need to support a given module, but the parser needs to recognize every elements to successfully parse the file).

Â

We also provide an XText editor for CSS (Currently 2.1), but itâs not good enough to be used at runtime, so we only use it as a file editor (especially for Papyrus-specific auto-completion and such). Weâll incrementally update it to support the CSS3 concepts we need, but weâre not planning to go much further.

Â

[1] http://cssparser.sourceforge.net/

[2] https://code.google.com/p/phloc-css/

Â

Regards,

Camille


_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev



--
GeschÃftsfÃhrer

vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
GeschÃftsfÃhrer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (032) 221739404, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com