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

Wrap HTML headings and following siblings in <section/

Subject: Wrap HTML headings and following siblings in <section/>
From: Jack Bates <ms419@xxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2010 18:01:34 -0700
 Wrap HTML headings and following siblings in <section/
I'm sure this has been solved before,

I'm working on a stylesheet to wrap all HTML headings and following
siblings, until the next same or greater heading, in <section/> elements

Here's my attempt so far,
http://www.sfu.ca/~jdbates/tmp/xsl/201003260/section.xsl

Currently processors choke on the XPath,

(html:h1|html:h2|html:h3|html:h4|html:h5|html:h6)/following-sibling::node()

Must I expand this and all similar XPaths? Are there any tricks I'm
forgetting to make this stylesheet more concise? Is there a *better* way
to solve this problem?

Thanks

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.