[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] parent node/ child node
Subject: [xsl] parent node/ child node From: "James Piva" <james.piva@xxxxxxxxxxxxxxx> Date: Wed, 20 Dec 2000 17:25:19 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl help, geeta gudavalli | Thread | Re: [xsl] parent node/ child node, Jeni Tennison |
Re: [xsl] Maximum number of cells, Goetz Bock | Date | Re: [xsl] Maximum number of cells, Miloslav Nic |
Month |