[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: figuring out what grandparent(?) is
> > 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
|
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
|