I want to extract only leaf nodes from an XML document (i.e. only elements that have no children). Has anyone written xslt for this?
SELECT="*[not(*)]"
Gotta give you something without a baby.
Using axes in XPath:
<xsl:apply-templates select="//you-node-spec[not(child::*)]" />