how can i retrieve the last children of an element with XSLT
for example:
<zoo>
<example>
<name>A</name>
</example>
<example>
<name>B</name>
</example>
<example>
<name>C</name>
</example>
<example>
<name>D</name>
</example>
</zoo>
How can i retrieve D?
Thank you for your helps
Use an expression like:
Or:
The following stylesheet literally just outputs
D(relying on the built-in template for text nodes):