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

for-each vs. apply-templates (was: Conformance of iXSLT ?)

Subject: for-each vs. apply-templates (was: Conformance of iXSLT ?)
From: Paul Terray <terray@xxxxxxxxxxxx>
Date: Wed, 29 Nov 2000 16:01:28 +0000
for each vs apply templates
At 13:29 29/11/00 +0000, you wrote:
Well if the specifcation is to do exactly that, then no. but what I
think you want to do is count all figures with a caption if you
are currently at a figure, and similarly for tables,
which would be

level="any" count="figure[caption]"

in the template for figure and

level="any" count="table[caption]"

in the template for table.

But not knowing the whole problem there may be some reason why that is
not appropriate in your case.

Actually, I am inside a reference element, and I have to show the table/figure number. I am here inside a <xsl:for-each> loop.


Which get me to the point : is it better to apply to an element by an apply-template, or choose it with for-each and then apply something to it ?

What are the pros and cons ?


--
Paul TERRAY - Ingénieur Systèmes Documentaires
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
Tel. 01 34 58 70 70 - Fax. 01 39 46 06 90
email : terray@xxxxxxxxxxxx




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.