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]
Other format: [Raw text]

RE: Replacing images with alt tags - PART 2


> > 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@ntlworld.com
work: Michael.Kay@softwareag.com


 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]