I believe the issue is (and I would like some clarification), is that
axis steps always return nodes in document order so
preceding-sibling::w:p[1]
will always return the first paragraph with its TableCaption child.
I believe the work around for this, to collect the nodes in search
order, is to make them a set,
(preceding-sibling::w:p)[1]
No this is wrong. preceding-sibling::w:p[1] selects the most recent w:p
element (the last in document order), whereas
(preceding-sibling::w:p)[1] selects the first in document order.
Michael Kay
Saxonica
--~------------------------------------------------------------------
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>
--~--