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

Re: The Match Game vs The Name Game

Subject: Re: The Match Game vs The Name Game
From: "Aleksei Valikov" <valikov@xxxxxx>
Date: Thu, 23 Aug 2001 21:59:55 +0200
game vs. match
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


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-2013 All Rights Reserved.