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

parent node/ child node

Subject: parent node/ child node
From: "James Piva" <james.piva@xxxxxxxxxxxxxxx>
Date: Wed, 20 Dec 2000 17:25:19 -0500
child node
Hi,

	I'm trying to replace a missing attribute in a node with the a default
	that is stored in its' parent node. i.e.:

	from this:
	<parent defaultAttribute="defaultAttributeValue">
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child/>
		<child attribute="attributeValue"/>
	</parent>
	<parent defaultAttribute="defaultAttributeValue1">
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child/>
	</parent>


	to this after the transformation:

	<parent defaultAttribute="defaultAttributeValue">
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child defaultAttribute="defaultAttributeValue"/>
		<child attribute="attributeValue"/>
	</parent>
	<parent defaultAttribute="defaultAttributeValue1">
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child attribute="attributeValue"/>
		<child defaultAttribute="defaultAttributeValue1"/>
	</parent>

	When the child attribute is missing I would like to add the
	defaultAttribute of the appropriate parent.
	All the parent tags have the same name.




	Does anyone know if this is possible, and if yes what direction I should take.

	many thanks,

	james

	
		



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.