Subject: RE: [xsl] plea for help... From: Kipp.Howard@xxxxxxxxxxxxxx Date: Thu, 9 Mar 2006 09:50:25 -0800 |
On Wed, 2006-03-08 at 16:45 -0600, Walter Torres wrote: > Well, now that I've sold the idea, I'm stumped on how to do it. > > 1) convert HMTL into well formed HTML (many are not) > 2) convert well formed HTML into xHTML > 3) convert xHTML into XML > 4) create XSLTs to transpose XML back to HTML for page display Sorry if this has already been suggested, but in the past I have successfully used: 1. Process the page through a browser (programmatically) and retrieving its page representation as text. This uses the browser's capabilities of fixing some really bad HTML. In my case I used IE to do this. 2. Process the retrieved HTML through tidy (converting to xHTML) If your pages as a whole don't have really bad HTML, you may be able to use tidy alone and be done with it. In my case, we applied an XSLT file to scrape data from the HTML page. -- Kipp E. Howard Sr. Software Engineer, LexisNexis File & Serve Phone: 425.372.1837 or 800.774.7317 ext 1837 Email: kipp.howard@xxxxxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] plea for help..., Wendell Piez | Thread | Re: [xsl] plea for help..., Alex von Thorn |
RE: [xsl] Escaping nodeset content, Michael Kay | Date | RE: [xsl] plea for help..., Wendell Piez |
Month |