Hi!

> Paladugu, Suresh schrieb:
>> sorry ,if my question confused you,
>> 
>> after publishing through StaticHtmlExporter,the images present in the  
>> resources/shared/images/ are not copied into my export/pending/live/images 
>> folder,if i put the image references in the css.but if i put images directly 
>> into the page2xhtml.xsl these images are copying but if the images 
>> export/pending/live/images folder.

> The problem is that the StaticHTMLExporter doesn't parse the CSS
> for images. I guess that would be quite hard to implement, except
> you find a Java CSS parser somewhere. It would be great if you could
> implement and donate that - until then, I'm afraid you have to
> copy the image files manually ...

There is a CSS Parser implementation by the W3C: SAC [1]
And there are some more out there. Like Css Parser [2] or the one by
the Apache Batik Project.

I never tried any of these...

But to get a list of all linked images you only have to scan the css
files for "url(path/image.ext)". The path may be quoted.[3] That should
be much easier.

Martin

[1] http://www.w3.org/Style/CSS/SAC/
[2] http://cssparser.sourceforge.net/
[3] http://www.w3.org/TR/CSS1#url


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to