Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.NET XML transform bug?

0 views
Skip to first unread message

davidw

unread,
Sep 22, 2002, 1:23:51 PM9/22/02
to
I use the following loop to display the first three subcategories under each
category:

<xsl:for-each select="/root/category/item[@parentid=$cateid and
count(preceding-sibling::*[@parentid=$cateid])&lt;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.


Christoph Schittko

unread,
Sep 22, 2002, 1:39:32 PM9/22/02
to
You can look up all the known (and admitted) bugs in the Microsoft
Knowledgebase, which is searchable at msdn.microsoft.com. The articles at
[1] and [2] discuss your problems and possible work-arounds.

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...

Prajakta Joshi

unread,
Sep 23, 2002, 6:01:05 PM9/23/02
to
This performance issue is documented in Microsoft KB article (INFO:
Performance of XSLT Transformations in the .NET Framework) at
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q325689#4

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

0 new messages