Or maybe even use a <xsl:choose> within a generic <emphasis> template. It
may not be as efficient as seperate matching templates (Michael?) but it's
a lot easier to understand if you're updating undocumented legacy code!
Especially if the code has been updated over some years and the various
possibly matching templates are dotted all over the place and you have to
work out all the relevant priorities :-(
Sorry if that sounds like a rant, but it just happens to be a bit of a
bugbear of mine at present.
regards,
Bruce
-----Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote: -----
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl>
Date: 08/23/2007 07:57PM
Subject: Re: [xsl] Print parent text
Angela Williams wrote:
<xsl:template match="emphasis[parent::a]">
or, depending on your preferred coding style: <xsl:template
match="a/emphasis" >... ;)
-- Abel
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
************************************************************************
This email (and attachments) are confidential and intended for the addressee(s)
only. If you are not the intended recipient please notify the sender, delete
any copies and do not take action in reliance on it. Any views expressed are
the author's and do not represent those of IOP, except where specifically
stated. IOP takes reasonable precautions to protect against viruses but accepts
no responsibility for loss or damage arising from virus infection. For the
protection of IOP's systems and staff emails are scanned automatically.
IOP Publishing Limited Registered in England under Registration No 467514.
Registered Office: Dirac House, Temple Back, Bristol BS1 6BE England
Vat No GB 461 6000 84.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--