HighDots Forums  

CSS with Java

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS with Java in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Heinzel
 
Posts: n/a

Default CSS with Java - 11-15-2003 , 07:41 AM






Hello

I have a Java Application and I get an HTML File as input into this
Applikation. I should now check if it is a valid CSS2 Stylesheet with
certain propertiers. Is there a tool which i can use for that verification?
Hope you can help me thanks in advance




Reply With Quote
  #2  
Old   
Henri Sivonen
 
Posts: n/a

Default Re: CSS with Java - 11-15-2003 , 09:23 AM






In article <bp5acd$1ljhbq$1 (AT) ID-135917 (DOT) news.uni-berlin.de>,
"Michael Heinzel" <ernte23 (AT) gmx (DOT) at> wrote:

Quote:
I should now check if it is a valid CSS2 Stylesheet with
certain propertiers. Is there a tool which i can use for that verification?
See http://www.w3.org/Style/CSS/SAC/

--
Henri Sivonen
hsivonen (AT) iki (DOT) fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


Reply With Quote
  #3  
Old   
Michael Heinzel
 
Posts: n/a

Default Re: CSS with Java - 11-15-2003 , 10:41 AM



Thanks a lot for your help, no its not for a course its for a project

bye




Reply With Quote
  #4  
Old   
Michael Heinzel
 
Posts: n/a

Default Re: CSS with Java - 11-16-2003 , 08:23 AM



Quote:
See http://www.w3.org/Style/CSS/SAC/
I have problems to start the parsing of a CSS file I always get a exception.
What is wrong?

This is my Main class:
import org.apache.batik.css.parser.*;

public class CSSTest {

public static void main(String[] args) {

Parser test = new Parser();

try {

test.parseStyleSheet("<STYLE type=\"text/css\">" +

" H1 { color: blue }</STYLE>");

}catch (Exception ex) {System.out.println(ex.toString());}

and then i always get the followin exception
org.w3c.css.sac.CSSException: Unable to make sense of URL for connection

Do you know what i have done wrong? Would be great if you could help me

Thanks




Reply With Quote
  #5  
Old   
Joel Shepherd
 
Posts: n/a

Default Re: CSS with Java - 11-16-2003 , 12:50 PM



Michael Heinzel wrote:
Quote:
See http://www.w3.org/Style/CSS/SAC/

This is my Main class: import org.apache.batik.css.parser.*;

test.parseStyleSheet("<STYLE type=\"text/css\">" +
" H1 { color: blue }</STYLE>");

}catch (Exception ex) {System.out.println(ex.toString());}

and then i always get the followin exception
org.w3c.css.sac.CSSException: Unable to make sense of URL for
connection
A three-minute scan of the class documentation seems to strongly
suggest that parseStyleSheet is expecting a URL or a bytestream (such
as from a URL connection), not an arbitrary string containing both
HTML and CSS markup.

--
Joel.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.