Thanks to everybody for the hints.
It's not clear to me why I'd use call-template vs. apply-templates.
I think I understand the push/pull model, and being old-school I think
I prefer the pull model. Especially after seeing the for-each trick Michael Kay
posted. It makes both templates exactly the same except for the
match/name attribute difference.
-g
On Mon, Jun 16, 2008 at 9:05 AM, David Carlisle
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
<xsl:call-template name="create-groups" select="."/>
That is a syntax error, call-template does not take a select attribute.
You can either call a template by name or by matching a node you can't
do both at the same time.
It's not clear (without knowing what trannsform you want to make) why
you are using call-templates at all rather than apply-temnplates, I
suspect that you just want apply-templates here.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--
Greg Fausak
greg(_at_)thursday(_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>
--~--