The parser is ignoring silently selector names with underscores in it. I even set an error handler but no error or warning is generated that I can report on. Can anybody let me know how to get those exceptions so that I can report on those that where ignored while parsing?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using whatever was latest as of last week, from looking at the readme files in the zip it says 0.9.4. The link that you sent are related to failing, what I am experiencing is that those classes where selector names have underscore the parser ignores them, and moves on, no expection is thrown.
public void error(org.w3c.css.sac.CSSParseException exception) throws CSSException
public void warning(org.w3c.css.sac.CSSParseException exception) throws CSSException
public void fatalError(org.w3c.css.sac.CSSParseException exception) throws CSSException
The above methods of the ErrorHandler that are set for the DocumentHandler never get call.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The most recent distribution available as a download is from November 2004. The bug you describe was fixed in 2005 and is available via CVS until the maintainer sees fit to provide an updated distribution. (See bug 1119207 and bug 1280760.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Got it work guys, thanks.
I figured out that for the version in CVS you need to use
"com.steadystate.css.parser.SACParserCSS1" instead of "com.steadystate.css.parser.SACParser" for the "org.w3c.css.sac.parser" property.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I'm not mistaken, those files are generated by the javacc tool and the SACParser.jj file. Are you running the build.xml supplied with the distribution to perform your build? The "compile" target in there performs that generation build step.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The parser is ignoring silently selector names with underscores in it. I even set an error handler but no error or warning is generated that I can report on. Can anybody let me know how to get those exceptions so that I can report on those that where ignored while parsing?
Thanks
What version are you using?
There are a couple of bugs (now closed) related to your question. Search for "underscore".
https://sourceforge.net/search/?type_of_search=artifact&group_id=82996&words=underscore
I am using whatever was latest as of last week, from looking at the readme files in the zip it says 0.9.4. The link that you sent are related to failing, what I am experiencing is that those classes where selector names have underscore the parser ignores them, and moves on, no expection is thrown.
public void error(org.w3c.css.sac.CSSParseException exception) throws CSSException
public void warning(org.w3c.css.sac.CSSParseException exception) throws CSSException
public void fatalError(org.w3c.css.sac.CSSParseException exception) throws CSSException
The above methods of the ErrorHandler that are set for the DocumentHandler never get call.
The most recent distribution available as a download is from November 2004. The bug you describe was fixed in 2005 and is available via CVS until the maintainer sees fit to provide an updated distribution. (See bug 1119207 and bug 1280760.)
Noted. I'll organise a new download as soon as the day job allows me!
Completely understandable, I'm in the same boat.
Got it work guys, thanks.
I figured out that for the version in CVS you need to use
"com.steadystate.css.parser.SACParserCSS1" instead of "com.steadystate.css.parser.SACParser" for the "org.w3c.css.sac.parser" property.
Thank you guys for your assistance. I got the latest using CVS but I can't get it to compile, there are missing java classes in the repository such as
com.steadystate.css.parser.ParseException
com.steadystate.css.parser.Token
Regards
If I'm not mistaken, those files are generated by the javacc tool and the SACParser.jj file. Are you running the build.xml supplied with the distribution to perform your build? The "compile" target in there performs that generation build step.