On Sat, Mar 27, 2010 at 11:13:25AM -0000, Michael Kay wrote:
Currently processors choke on the XPath,
(html:h1|html:h2|html:h3|html:h4|html:h5|html:h6)/following-si
bling::node()
[...]
Overall, I think this kind of problem is much better tackled using sibling
recursion, where you apply-templates to the first sibling, it does
apply-templates to the next sibling, and so on. Or in 2.0, you can use
<xsl:for-each-group group-starting-with="h1"/>.
Thanks a lot Michael, I wrote this working stylesheet using sibling recursion,
http://github.com/jablko/manual/blob/master/section.xsl
- however it's 430 lines and has six "mode"s, in addition to the "default" mode
Can anyone please suggest how I can make this stylesheet more concise?
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>
--~--