[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] parent node/ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|