This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RE: apply-templates and excluding a node


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]