Re: SAX example in Java

Jeremy,

Thanks for your quick response. I actually meant SAC
(The Simple API for CSS) example in Java. I went to
the website http://www.w3.org/Style/CSS/SAC/ looking
for examples in Java (how to parse a CSS and lookup
rules), but I could not find one there. So I am
wondering where I can find any examples in that area.

Thanks for your help.

Sam

--- Jeremy Dunck <ralinon@hotmail.com> wrote:
> >From: Sam Cheung <sy_cheung2@yahoo.com>
> >Hi,
> >
> >Can anyone please tell me where I can find example
> of
> >how to use SAX to parse a CSS StyleSheet and get
> rule
> >based on the element name/class attribute from the
> >StyleSheet.
> >
> >Thanks in advance for any help.
> 
> You're out of luck, I'm afraid.  For one thing, SAX
> stands for Simple API 
> for XML.... it's an XML parser.  CSS is -not- XML. 
> Therefore SAX can not be 
> used to parse CSS.
> 
> If you mean that you would like an example of how to
> parse CSS, you can 
> check out this:
> http://jigsaw.w3.org/css-validator/README.html
> 
> or
> 
> http://dev.w3.org/cvsweb/2002/css-validator/
> 
> If you mean you would like an example of using SAX
> with XSLT (or some other 
> XML document) try here:
> 
> http://www.saxproject.org/?selected=quickstart
> 
> HTH,
>   Jeremy
> 
>
_________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
> 


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Received on Thursday, 22 August 2002 07:25:39 UTC