Subject: Re: LOOP-LIMIT
From: Hans Huber <hans.huber@xxxxxxxx>
Date: Fri, 01 Mar 2002 16:11:46 +0100
|
Hi,
I have a comment concerning performance: you can easily obtain the most
performant of the two possible ways by profiling your transformations.
If this is of relevance to you check out
http://www.xslprofiler.org
Cheers, Hans.
Corey_Haines@xxxxxxxxxxxxxxx wrote:
You could do something like
<xsl:for-each select="root/child[@id<4]">
Do Something
</xsl:for-each>
<xsl:for-each select="root/child[@id>3]">
Do Something Else
</xsl:for-each>
Or,
<xsl:for-each select="root/child">
<xsl:choose>
<xsl:when test="@id < 4">
Do Something
</xsl:when>
<xsl:otherwise>
Do Something Else
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
-Corey
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: LOOP-LIMIT, (continued)
- cutlass - Fri, 1 Mar 2002 09:56:52 -0500 (EST)
- naha - Fri, 1 Mar 2002 10:09:16 -0500 (EST)
- Corey_Haines - Fri, 1 Mar 2002 09:54:14 -0500 (EST)
- Hans Huber - Fri, 1 Mar 2002 10:08:26 -0500 (EST) <=
|
|