I want convert HTML with Css to xsl-fo. Anyone can suggest to me how to convert this.
I have 2 file one html file and once css file. I want to generate xsl-fo file with these 2 files so that I can easily generate pdf, rtf and other format easily.
HTML file
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="style.css"/> *--> css file*
<title></title>
</head>
<body>
<div class="cw-default">
<p><span class="sans"><b>Short title</b></span> this is text for testing<i>italic text</i>.</p>
<p class="center">this is test</p>
</div>
</body>
</html>
style.css file will add property into the html, I want this property values will come in generated FO file also.
/* Style Sheet */
.cw-default { font-size: 1em; }
.sans { font-family: arial,helvetica }
.center {text-align: center;}