This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: apply-templates and excluding a node
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE: apply-templates and excluding a node
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 5 Oct 2001 11:34:02 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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