A third option would be to employ @mode of <template>.
-W
On 15 September 2010 14:29, Andrew Welch
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
Suppose I want a template to just match the later
<template match="section">
Would match all three (?)
<template match="master/section" >
might do the trick but suppose there is another "master" locally defined
elsewhere that I DONT want to match.
You have 2 options, 1 - make the match patterns more specific, or 2 -
be more selective when you apply-templates. Your template will only
get used if you call apply-templates, or let the inbuilt templates
kick in and call apply-templates.
If in doubt, post a small, complete example input and required output.
--
Andrew Welch
http://andrewjwelch.com
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--