ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] The Match Game vs The Name Game
by Aleksei Valikov other posts by this author
Aug 23 2001 7:59PM messages near this date
[xsl] The Match Game vs The Name Game | RE: [xsl] The Match Game vs The Name Game
Hi


>  For some reason I didn't expect this to work, because I can't find any
>  specific reference to it in any of my resources.  I went ahead and tried
>  anyway, and it seemed to work like a charm
> 
>  <xsl:template name="fubar" match="foo/bar">

Not a big surprise - I think even the TR explicitly states that it is
possible.

>  Matches all bar elements of foo by default, and also can be called
>  specifically with:
>  <xsl:call-templates name="fubar">
> 
>  Any reason I should be surprised by this? Or, any caveats I need to be
aware
>  of before I go nuts with this new discovery?

No, that's absolutely no big thing, but you must notice the difference
between apply-templates and call-template calls: call-template does not
change the current node. That's the only rock under the water here.

Bye.
/lexi


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
Thread:
McKeever, Marty
Aleksei Valikov
Evan Lenz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved