This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Keeping track of parents
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Keeping track of parents
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 13 Jul 2001 16:17:48 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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