xsl-list
[Top] [All Lists]

RE: [xsl] push-pull

2008-03-19 02:16:48

What is the best way for an xslt2 template declared like 
this, for example:
<xsl:template name="pull" match="*" mode="push">...
to know or recognize when it is pulled or pushed.
(called by name or invoked by match and mode)?


I don't think you can.

I've never been convinced it's a good idea to have such templates: it's hard
to make sure that the entry conditions are the same whether it is invoked by
apply or by call. In particular, when you are writing a match template it
should be possible to assume that the context item matches the pattern, and
allowing entry by name makes this assumption invalid. 

Michael Kay


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