[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Transform HTML to XML using XSL

Subject: Transform HTML to XML using XSL
From: "Byomokesh" <bkesh@xxxxxxxxxxxxxxx>
Date: Fri, 19 Jan 2007 12:46:29 +0530
 Transform HTML to XML using XSL
Hi All,

HTML File
=========
<HTML>
<BODY>
<P align="center"><FONT face="Arial" size="2"><FONT
size="4">Pr&oacute;logo<BR/></FONT><FONT size="5"
color="#FF0000"><I>Comien&ccedil;a Cath&oacute;lica Magestad
delinvict&iacute;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&iacute;guese el Argumento del</I></FONT></P>
<P align="center"><FONT size="4">Cap&iacute;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&oacute;logo</title>
<para><i>Comien&ccedil;a Cath&oacute;lica Magestad
delinvict&iacute;ssimo</i> semper Emperador de Roma.</para>
<-- Some para continue -->
</level>
<level id="pref02"><title>Argumento</title>
<para>S&iacute;guese el Argumento del</para>
</level>
</chapter>
<chapter id="Ch01"><title><label><b>Cap&iacute;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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.