Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xsl] Transform HTML to XML using XSL [xsl] Transform HTML to XML using XSLTo: Date: 1/19/2007 7:22:00 AM Hi All, HTML File ========= <HTML> <BODY> <P align="center"><FONT face="Arial" size="2"><FONT size="4">Prólogo<BR/></FONT><FONT size="5" color="#FF0000"><I>Comiença Cathólica Magestad delinvictíssimo</I> semper</FONT> Emperador de Roma.</FONT></P> <P align="center"><FONT size="4">Argumento<BR/></FONT><FONT size="5" color="#FF0000"><I>Síguese el Argumento del</I></FONT></P> <P align="center"><FONT size="4">Capítulo I<BR/></FONT><FONT size="5" color="#FF0000"><I>Marco Aurelio Emperador.</I></FONT></P> </BODY> </HTML> I Want Output ============= <document> <chapter id="FM01"><title>Front Matter</title> <level id="pref01"><title>Prólogo</title> <para><i>Comiença Cathólica Magestad delinvictíssimo</i> semper Emperador de Roma.</para> <-- Some para continue --> </level> <level id="pref02"><title>Argumento</title> <para>Síguese el Argumento del</para> </level> </chapter> <chapter id="Ch01"><title><label><b>Capítulo I</b></label> <b>Marco Aurelio Emperador.</b></title> <!-- then para continue and again chapter start --> </chapter> </document> --------------------- Same tag but i need different condition to xml output. 1. How start and close in chapter and section tag. 2. <BR/> -- tag some cases inline text and some cases need para taging in base of XML output. Please anyone help.... Thanks and Regards Byomokesh | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
