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

Re: Nicer way to change context-node than xsl:for-each

Subject: Re: Nicer way to change context-node than xsl:for-each ?
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Mon, 7 Dec 2009 10:45:20 +0000
Re:  Nicer way to change context-node than xsl:for-each
>>> Didn't you know that <xsl:apply-templates> can be used in pull-style
>>> processing? Modes and uniquely namespaced nodes should light a bulb :)
>>
>> I am not sure, if that's entirely correct. Working on
>> xsl:apply-templates with modes looks to me semi pull style, and not a
>> pull style in entirety!
>
> It is not "semi pull style". Its pull style when only one template has
> that mode or matches a node from a uniquely defined namespace (used
> only for the purpose of identifying its matching template).

Hmm, an empty <xsl:apply-templates/> is always push, regardless of
mode or namespaces.  If a select attribute is used, then it becomes
pull.

I can't see how the number of templates involved, the modes or
namespaces have any affect on whether its pull or push...?   For
example, are you saying:

<xsl:apply-templates mode="foo"/>

...is pull when only a single template exists with that mode, but push
otherwise?




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.