xsl-list
[Top] [All Lists]

Re: testing parent node with xsl:choose

2003-01-21 17:09:20
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



<Prev in Thread] Current Thread [Next in Thread>