[xsl] Deepest element in the tree

Subject: [xsl] Deepest element in the tree
From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Aug 2016 19:46:06 -0000

I am trying to find the deepest, last element in an xml file. When I use
this xpath 1.0 statement:


it returns all nine of the last elements. I want to get the <p>4</p> element
because it is the last of the last. Note that I don't know ahead of time
what element name it will be. I tried this


but it still returns all of them. Any help would be appreciated. Here is my

<?xml version="1.0" encoding="UTF-8"?>

Rick Quatro
Carmen Publishing Inc.

Current Thread