Re: [ajax-user] Working examples of Cypress
Brought to you by:
vamp201
From: Gerald B. <ge...@va...> - 2003-01-31 07:08:34
|
Hi David, > Does anyone have any working examples of Cypress? > I'm having a little > trouble getting anything to work. Please, check out Luxor - http://luxor-xul.sourceforge.net - that use Cypress for CSS parsing. > I get a NullPointerException in > cypress.Cssparser.parseStyleSheet(CssParser.java:165) > with something as > simple as this snippet: > > InputSource in = new > InputSource("http://localhost:8080/config/theme2.css"); > CssParser p = new CssParser(); > p.parseStyleSheet(in); Cypress works a little like SAX, that is, you need to install handlers first, otherwise you end up with a null pointer exception. Please, check out the Luxor source for details (e.g. the packages luxor.css.*) - Gerald |