RE: [xsl] Replacing images with alt tags - PART 2

Subject: RE: [xsl] Replacing images with alt tags - PART 2
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 19 Apr 2002 10:22:09 +0100
> > Wrong. Whether or not a given node matches a pattern has
> nothing whatever to do with the apply-templates call.
>
> I know, Mike, but the results - I mean, which templates get
> invoked - do
> depend on the context, right?

If there's one template rule for match="a/img", and another for match="img",
with the same precedence and priority and mode, then an <img> whose parent
element is <a> will match the first one regardless of how it was selected.
There are no circumstances in which an <img> element with an <a> parent will
match the second template rule.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread