Subject: RE: [xsl] Keeping track of parents From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 13 Jul 2001 16:17:48 +0100 |
> Most of it I can generate, but how can I fill the parentid? > If there is no > ancestor-element named <somenode> then the parent_id should > be 0, else the > parent_id should be the group_id of the ancestor. <xsl:attribute name="parent_id"> <xsl:choose> <xsl:when test="ancestor::somenode"> <xsl:value-of select="ancestor::somenode[1]/@group_id"/> </xsl:when> <xsl:otherwise>0</... Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Keeping track of parents, Daniel Newman | Thread | Re: [xsl] Keeping track of parents, Anthony E. |
RE: [xsl] Keeping track of parents, Daniel Newman | Date | [xsl]: Setting the value of variabl, Aparna Joshi |
Month |