<TEI>
<text id="R">
<text id="E">
<text id="D">
</TEI>
If I call a template and pass the node <text id="E"> in as a parameter, what test expression, executed inside the template, will test whether text E is the last of <TEI>‘s children?
I assume that by
<TEI>‘s children you mean<TEI>‘s element-children.If so, use:
the above may be more efficient (in case the XPath optimizer isn’t too smart) than the equivalent:
In case that by by
<TEI>‘s children you mean<TEI>‘s any-node-type (text, comment, PI and element)-children, then use this XPath expression: