Hi Folks,
Suppose you want to count the <head> elements within the <section> elements.
You might use this simple XPath expression:
count(//section/head)
However, that has a subtle problem when used in a streaming program.
I created a few slides that describe the problem, as well as the solution:
http://xfront.com/Streamable-XPath-expression.pptx
/Roger
--~------------------------------------------------------------------
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>
--~--