473,460 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS with Java

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

Jul 20 '05 #1
5 15937
Michael Heinzel wrote:
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


2 messages, both from Austria, same unusual problem. Is this a class
assignment for a computer course?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
In article <bp*************@ID-135917.news.uni-berlin.de>,
"Michael Heinzel" <er*****@gmx.at> wrote:
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
hs******@iki.fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 20 '05 #3
> See http://www.w3.org/Style/CSS/SAC/

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

bye
Jul 20 '05 #4
> 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
Jul 20 '05 #5
Michael Heinzel wrote:
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.

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.