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

Re: transform html h1 with a div

Subject: Re: transform html h1 with a div
From: Giuseppe Briotti <g.briotti@xxxxxxxxx>
Date: Fri, 26 Oct 2012 10:21:19 +0200
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)

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.