This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Replacing images with alt tags - PART 2
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 19 Apr 2002 10:22:09 +0100
- Subject: RE: [xsl] Replacing images with alt tags - PART 2
- Reply-to: xsl-list at lists dot mulberrytech dot com
> > 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