https://issues.apache.org/bugzilla/show_bug.cgi?id=47221
Summary: cannot parse the input string because of simple CSS
Product: Batik
Version: 1.8
Platform: PC
URL: http://www.geeksww.com
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P5
Component: CSS
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=23694)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23694)
css file before chanegs (that did not work)
Hi,
The attached CSS file is not getting parsed properly by the batick CSS parser.
But, if I remove the following selector(with properties) from CSS I am able to
parse it.
body {
background:#ffffff;
margin:0;
color:#333333;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}
I tried printing names in property function but with the above selector I
managed to print only background.
I am getting the following error message only when I try inputting the CSS text
ps.parseStyleSheet(new org.w3c.css.sac.InputSource(new StringReader(src)));.
[ java.lang.IllegalStateException ] nullnulljava.lang.IllegalStateException
at
org.apache.batik.css.parser.CSSLexicalUnit.getStringValue(CSSLexicalUnit.java:175)
at CSSParser.property(CSSParser.java:82)
at
org.apache.batik.css.parser.Parser.parseStyleDeclaration(Parser.java:885)
at org.apache.batik.css.parser.Parser.parseRuleSet(Parser.java:604)
at org.apache.batik.css.parser.Parser.parseStyleSheet(Parser.java:233)
at CSSParser.parseStyleSheet(CSSParser.java:48)
at <filename>.run(<filename>.java:322)
at java.lang.Thread.run(Thread.java:619)
Please fix it and let me know.
thanks
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]