At 2004-09-22 12:49 -0400, john-xsl-list wrote:
I want to process all second level nodes that have children. Is there an
XPath to retrieve all nodes having children, or do I add logic to ignore
nodes without children after the XPath has already been evaluated?
<one>
<two>
<three>
</two>
<two />
<two>
<three>
</two>
</one>
Is there an XPath that will only return the first and third instances of
<two>?
/one/two[*]
"return the 'two' element children of the document element 'one'
where the 'two' elements have children elements of any name"
I hope this helps.
................ Ken
--
Upcoming publicly-subscribed XSL delivery: Helsinki Oct 18-20,2004
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal