This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Selecting Parent Nodes with Empty Children


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]