This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Selecting Parent Nodes with Empty Children
- From: "Hellstern, Manny" <manny dot hellstern at mustangeng dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Fri, 5 Apr 2002 13:33:02 -0600
- Subject: [xsl] Selecting Parent Nodes with Empty Children
- Reply-to: xsl-list at lists dot mulberrytech dot com
I have XML that looks like:
<APP>
<SECTION id="first">
<CONTROL type="button">
<VALUE />
</CONTROL>
<CONTROL type="text">
<VALUE>dummy text</VALUE>
</CONTROL>
</SECTION>
<SECTION id="second">
<CONTROL type="button">
<VALUE />
</CONTROL>
<CONTROL type="button">
<VALUE>more text</VALUE>
</CONTROL>
</SECTION>
</APP>
What I want to select is a tree fragment that looks like:
<SECTION id="first>
<CONTROL type="text">
<VALUE>dummy text</VALUE>
</CONTROL>
</SECTION>
<SECTION id="second">
<CONTROL type="button">
<VALUE>more text</VALUE>
</CONTROL>
</SECTION>
Thanks to all who reply.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list