Skip to main content

css to xsl conversion using java code

No replies
Joined: 2009-07-02

I need to convert xhtml file(which is linked to css file) into a wml file. So I have divided the task into 2 steps:
1. convert css to xsl using java code.
2. convert xhtml & the converted xsl to wml.

I know how to convert plain xhtml(i.e without css) to wml. But could anyone give me an example as to how to convert a css file to xsl.

for eg if this is my css i want to transform it to xsl using java code.:

font-family: verdana, arial, 'sans serif';

p, h1, h2, h3, table, li, hr
margin-left: 10pt;

font-size: 75%;