Subject: Re: [xsl] Test expression : Is Context Node an ancestor of node with Id! From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Sat, 19 Feb 2005 08:33:40 +0100 |
<xsl:choose> <xsl:when test="@id=$id | ancestor::tree_node[@id=$id]"> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose>
I want to use a test expression to test whether the node currently matchedcorrect
(context node?)
is an ancestor of a node with a specified id.
<xsl:choose> <xsl:when test="descendant-or-self::tree_node[@id=$id]"> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Veni, vidi, wiki (http://www.wikipedia.org)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Test expression : Is Context , Adam J Knight | Thread | Re: [xsl] Test expression : Is Cont, David Carlisle |
[xsl] [ANN] Microsoft and RenderX m, Kevin Brown | Date | Re: [xsl] Test expression : Is Cont, David Carlisle |
Month |