[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: cleaning up ill-structured html
Ole,
While what Simon says is generally true, it's not *completely* true that XSLT can't be used to interpolate a hierarchy. See the XSL FAQ at http://www.dpawson.co.uk/xsl/sect2/flatfile.html for an approach treating your step 2 as a grouping problem, and leveraging your hierarchy that way (the trick is to use a key to associate each node with its most recently preceding break, then create a new paragraph every time you process a break with any associated nodes, pulling them into it). It's not an obvious technique, but it's pretty easy once you grasp the principle. Ask again if you need more specific help. Cheers, Wendell At 05:43 PM 1/23/2003, you wrote: Probably best to start over with the HTML and use regular expressions, e.g., with Perl. This is not an XSL subject, the html you are starting with is not tree-structure so XSL is no help. ... I can do step 1, but step 2 gives me trouble. To formalise: how do I convert a structure structure like XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|