<xsl:for-each select="/root/category/item[@parentid=$cateid and
count(preceding-sibling::*[@parentid=$cateid])<3]">
....
</xsl:for-ech>
but that code takes more than 10 seconds under .NET, there are totally 400
categories(including sub-categories), but the same codes take less than one
second under MSXML, any idea?
Thanks.
HTH,
Christoph Schittko
[1] http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q317691&
[2] http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q325689&
"davidw" <wyx...@hotmail.com> wrote in message
news:#aQv0zlYCHA.1548@tkmsftngp08...
A possible workaround is to use following-sibling axis and restructure your
style sheet a bit.
HTH,
Prajakta
--------------------
| From: "davidw" <wyx...@hotmail.com>
| Subject: .NET XML transform bug?
| Date: Sun, 22 Sep 2002 10:23:51 -0700
| Lines: 17
| Organization: Affinisys Inc.
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#aQv0zlYCHA.1548@tkmsftngp08>
| Newsgroups: microsoft.public.dotnet.xml
| NNTP-Posting-Host: 216.232.205.93
| Path: cpmsftngxa08!tkmsftngp01!tkmsftngp08
| Xref: cpmsftngxa08 microsoft.public.dotnet.xml:8421
| X-Tomcat-NG: microsoft.public.dotnet.xml