[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi Raven,
If your sample file below is correct,
<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
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>all you need to do is replace the expression
<identification> <ul> <li>This Text</li></ul>
</identification>
</spool>
<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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] testing parent node with xsl:, raven | Thread | RE: [xsl] testing parent node with , Ross Ken |
RE: [xsl] testing parent node with , Dunning, John | Date | [xsl] Template/function libraries f, Hugh Dixon |
Month |