Subject: RE: RE: apply-templates and excluding a node
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 5 Oct 2001 11:34:02 +0100
|
> I found the solution already
>
> it is <xsl:apply-templates select="*[not(self::PRFID)]" />
>
> What I do not undestand is why "self" why not "child"? Can
> anyone explain
> this?
The context node for evaluating the predicate is the "*" outside the
predicate. The "*" is short for "child::*", so you are applying the
predicate to the children of the original node, and you want to ask whether
one of these children IS a PRFID, not whether it has a child PRFID.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|