xsl-list
[Top] [All Lists]

Re: [xsl] stylesheet expansion

2007-12-10 03:23:40
On 10/12/2007, Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote:
Considering Colin's remarks, about xsl:next-match etc, it is an exercise
which may be next to impossible (at least far from trivial), but I maybe
wrong...

I would say it is impossible...

<xsl:template match="foo" priority="99999">

will be ignored in favour of:

<xsl:template match="*">

because of import precedence...

I can't see how you can combine those two in the same stylesheet and
ensure the * matching template gets chosen over the foo matching
template, without rewriting the match patterns.

As Colin has said, compiled stylesheets seem to be the only way, but
may be not what the OP was after.  Ideally importable compiled
"stylesheet modules" will be invented soon....   :)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--

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