[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Match the element that have children and the attribute

Subject: Match the element that have children and the attribute this="true" or the parent of the element having the attribute this="true" that does not have children.
From: Jacob Friis Saxberg <webcom.dk@xxxxxxxxx>
Date: Thu, 1 Dec 2005 00:36:24 +0100
jacob friis saxberg
Hello.

Below is an example of my XML data.
I'd like to match the element that have children and the attribute
this="true" or the parent of the element having the attribute
this="true" that does not have children.

I have tried, but so far without luck.

<outline type="link" title="Frontpage" url="/index.html" />
<outline type="link" title="Furniture" url="/Furniture.html">
	<outline type="link" title="Staten Collection" url="/Staton.html">
		<outline type="link" title="2 Door Sideboard" url="/Staton_2_door.html" />
		<outline type="link" title="3 Door Sideboard" url="/Staton_3_door.html" />
		<outline type="link" title="Coffee Table" url="/Staton_coffee_table.html"
/>
		<outline type="link" title="Ext. table" url="/Staton_ext_table.html" />
		<outline type="link" title="Lamp Table" url="/Staton_lamp_table.html" />
		<outline type="link" title="Roomdivider" url="/Staton_room.html" />

		<outline type="link" title="Fixed Table" url="/Fixed_Table.html" />
		<outline type="link" title="TV Stand" url="/TV_Stand.html" />
	</outline>
	<outline type="link" title="Beesky Collection" url="/Beesky.html"
this="true">
		<outline type="link" title="Beesky Table" url="/Beesky_Table.html" />
		<outline type="link" title="3 Door Sideboard" url="/3_Door_Sideboard.html"
/>
	</outline>
	<outline type="link" title="Tasker Collection" url="/Tasker.html">
		<outline type="link" title="Table" url="/Table.html" />

	</outline>
	<outline type="link" title="Tema Bed Collection" url="/Tema.html">
		<outline type="link" title="Tema 1" url="/Tema_1.html" />
		<outline type="link" title="Tema 2" url="/Tema_2.html" />
		<outline type="link" title="Tema 3" url="/Tema_3.html" />
		<outline type="link" title="Tema Box" url="/Tema_Box.html" />
	</outline>
	<outline type="link" title="Chairs" url="/Chairs.html">
		<outline type="link" title="Activ" url="/Activ.html" />

		<outline type="link" title="Barstool" url="/Barstool.html" />
	</outline>
</outline>
<outline type="link" title="About Specter Products"
url="/About_Specter_Products.html" />
<outline type="link" title="Contact" url="/Contact.html" />
<outline type="link" title="Spots" url="/lib/include/spots.html" />
<outline type="link" title="Contact receipt" url="/Contact_receipt.html" />

Thanks,
Jacob

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.