You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by matiam <ma...@googlemail.com> on 2009/05/12 17:14:11 UTC

Batik SAC CSS Parser - get position

Hi there,

I'm using the SAC-compliant CSS parser in Batik to parse some CSS
stylesheets. I already got it working to fire events for each selector.
But I also need the information _where_ the event was fired, the line number
(and column number) of the matched selector.

As specified here
http://www.w3.org/Style/CSS/SAC/doc/org/w3c/css/sac/Locator.html the W3C SAC
also defines the Interface "Locator" for this purpose, but neither could I
find any class in Batik implementing this nor did I find any other method to
retrieve the position of the parser.

Does anyone know how this could work?

Thanks,
matiam
-- 
View this message in context: http://www.nabble.com/Batik-SAC-CSS-Parser---get-position-tp23504562p23504562.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Batik SAC CSS Parser - get position

Posted by Helder Magalhães <he...@gmail.com>.
Hi matiam,

> As specified here
> http://www.w3.org/Style/CSS/SAC/doc/org/w3c/css/sac/Locator.html the W3C SAC
> also defines the Interface "Locator" for this purpose, but neither could I
> find any class in Batik implementing this nor did I find any other method to
> retrieve the position of the parser.
> Does anyone know how this could work?

I'm not really familiar with this code, but
"org.apache.batik.css.parser.ParseException" may hint towards a
solution. :-)


> Thanks,
> matiam

Hope this helps,
 Helder

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org