[xsl] Find node with no child text() nodes

Subject: [xsl] Find node with no child text() nodes
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Wed, 4 May 2011 17:12:16 -0700
Need help with XSLT 1.0 template please.
How do you match on block_x when no descendant text() nodes exist?
Note:  there is no predictive knowledge of the depth of block within block_x.
In sample below, block_x id 2 should match.
Like:
<blocks>
  <block_x id="1">
    <block/>
    <block/>
    <block>asdf</block>
  </block_x>
  <block_x id="2">
    <block/>
    <block>
       <sub_block/>
    </block>
</block_x>
</blocks>


Karl..
--
Karl Stubsjoen
MeetScoresOnline.com
(602) 845-0006

Current Thread