Subject: RE: [xsl] figuring out what grandparent(?) is From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 29 Mar 2002 21:32:37 -0000 |
> > When processing the <link> template, I need to know whether > I'm inside of > the <smallbox> or just in the <article>; that is, I need > something like: > > <xsl:choose> > <xsl:when [descendant of smallbox]> <xsl:when test="ancestor::smallbox"> tests whether the context node has an ancestor called <smallbox>. Another approach is to write separate template rules for <link>s depending on whether they are descendants of a smallbox: <xsl:template match="link">... <xsl:template match="smallbox//link">... Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] figuring out what grandpa, Joerg Heinicke | Thread | [xsl] Retrieving subelemets attribu, Shaik Zulfakhar Ali |
RE: [xsl] Looping and assigning int, Michael Kay | Date | RE: [xsl] XML String as Parameter.., Michael Kay |
Month |