RE: XSL template to convert blob of HTML tags to Word
Altsoft, 1. The HTML that InfoPath rich text box generates for any rich text added into it is XHTML. So we have the XML compliance covered. 2. I think even the formatting would be taken care of and if not I shall think about a way around that. The current question is what would be the most convenient and non-complex (hopefully) way to convert a blob of X-HTML to Word ML. Any thoughts are welcome. Thanks, Abhishek ____________________________________________________________ Abhishek Sanwal HP - Houston Campus ........................................................................ .. -----Original Message----- From: Altsoft Xml2PDF [mailto:xml2pdf@xxxxxxxxxxxx] Sent: Wednesday, August 25, 2004 11:52 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Cc: SANWAL, ABHISHEK (HP-Houston) Subject: Re: XSL template to convert blob of HTML tags to Word ML tags? > Does someone have or has seen XSLs that can be fed an blob of HTML tags > and those tags get converted to and returned as Word ML tags. There are two core problems that prevent from doing universal XSLT solution for HTML (or even XHTML): 1. HTML may be not valid XML. If XML is not valid XSLT processor fails. Thus only XHTML is Ok for XSLT. 2. Formatting is described in CSS. CSS might be defined in the style attribute, in the <script> tag or in the external file. CSS have numerous rules for addressing required tags (by class, by id, by tag name, by attribute value, first child of, second child of the specified parent, etc. ). All this features are unrealizable using standard XSLT. Thus, AFAICS, universal XSLT for HTML/XHTML cannot be implemented. This solution might only be solved using software method. Regards, Altsoft Xml2PDF Team, http://alt-soft.com/products_xml2pdf.jsp > Date: Wed, 25 Aug 2004 12:10:01 -0500 > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> > From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx> > Subject: XSL template to convert blob of HTML tags to Word ML tags? > Message-ID: <24B68DDCFD49004882CD8D02D2E4338A02D89B00@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format