John Reid wrote:
i have tried a number of approaches but with various but not correct
results. I want to delete the absent node (and everything below it)
where $vardate = from and @pword $varpword.
<xsl:variable name="pword" select="ancestor::@pword"/>
Wont select anything, ever. Try
<xsl:variable name="pword" select="ancestor::player/@pword"/>
or if the player node is always the grandfather
<xsl:variable name="pword" select="../../@pword"/>
<xsl:apply-templates select="@*|node()[not($date1 = $vardate and
$pword = $varpword)]"/>
This does not quite match your problem description ("I want to
delete the absent node"). The following template
will make processing the nodes in questions a no-op (iow kill it),
other absent nodes are copied through by the other template.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list