[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: transform html h1 with a div
thanks for your answers Martin! I will test the link that you suggest. I've also found this one that works http://www.xmlplease.com/xhtml/xhtml-hierarchy but this xslt required some prerequisites: * There can only be one h1, and it must be the first heading. * The first heading after h1 must be h2. * The first heading after h2 must be h2-h3. * The first heading after h3 must be h2-h4. * The first heading after h4 must be h2-h5. * The first heading after h5 and h6 must be h2-h6. Unfortunately I must work on fragment too, and I don't have control on XML source so: * The higher h* level can be any of h1, h2, ... h6 (but this is not a great problem) * Not all the intermediate levels are present (i.e. I can have a h1 followed by a h3) Thus, basically, a conservative approach is to consider a section starting from a given Hx and ending to the next Hy, where y>=x. And all the intermediate Hz (with z<x) must be processed in same way... -- Giuseppe Briotti g.briotti@xxxxxxxxx "Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio)
|
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
|