[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] testing parent node with xsl:choose


Subject: Re: [xsl] testing parent node with xsl:choose
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 22 Jan 2003 00:09:20 +0000

Hi Raven,

If your sample file below is correct,

<spool>
<identification> <ul> <li>This Text</li></ul>
</identification>
</spool>


all you need to do is replace the expression

<xsl:when test="parent::spool">

with

<xsl:when test="ancestor::spool">

since spool is in fact the great-great-grandparent of li in your first sample, so it is an ancestor not the parent.

Francis.



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread