This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
for-each vs. apply-templates (was: Conformance of iXSLT ?)
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@4dconcept.fr
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list