xsl-list
[Top] [All Lists]

Re: [xsl] Multiple template rules, in different files, matching same element ... how to invoke a template rule in a specific XSLT file?

2019-04-11 09:06:56
On Thu, 11 Apr 2019 at 14:47, Costello, Roger L. costello(_at_)mitre(_dot_)org
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Hi Folks,

I have multiple template rules that match on airport/row and the template 
rules all have the same mode:


If you use xsl:include (rather that xsl:import) and they match with
the same priority that's an error.

From your description it seems that it is the use case that modes were
designed for, not sure why you say it's awful?.

Otherwise if you make it a non-error situation by using xsl:import, or
by adjusting the priorities you could (in theory) apply templates
passing a tunnel parameter and have each template bail out with
xsl:next-match if it doesn't see the "expected" value of the
parameter, but using separate modes seems simpler.


David
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>