[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: apply-templates vs. call-template problem

Subject: Re: apply-templates vs. call-template problem
From: "Greg Fausak" <lgfausak@xxxxxxxxx>
Date: Mon, 16 Jun 2008 09:25:08 -0500
Re:  apply-templates vs. call-template problem
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@xxxxxxxxx> 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@xxxxxxxxxxxx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.