xsl-list
[Top] [All Lists]

[xsl] Wrap HTML headings and following siblings in <section/>

2010-03-26 20:02:39
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>