My question was more to do with the pattern Joris used, i.e.
generate-id((..
| preceding-sibling::hr)[last()]).
I understand the generate-id() function but was not entirely
sure what the
pattern itself was doing.
It's an expression not a pattern; and it's basically indexing each element
by the identity of the most recent hr element. That means that given an hr
element, you can find all the elements for which that is the most recent hr,
i.e. all the elements that follow that hr with no intervening hr.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--