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

RE: preceeding:sibling?

Subject: RE: preceeding:sibling?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 9 Apr 2002 10:26:51 +0100
RE:  preceeding:sibling?
> Thanks for the link. I have in fact got a working stylesheet that
> does remove the duplicates, however it only seems to work on xml
> documents that are small, say the example xml with the previous mail.
>
> If I apply it to a larger file, say, 20Mb the duplicates
> appear once more.
>
> This tends to suggest to me that my stylesheet is ok but
> Saxon may need
> more space? to remove the duplicates as it may have to compare each
> attribute with thousands of others. Unless there is a more
> elegant way of
> doing this? My machine has 256meg RAM, 900Mhz.
>
> Could anyone suggest a solution? More memory or different stylesheet?

Saxon isn't going to produce wrong answers just because your document is too
big, there is something else going on here. Perhaps an extra layer of
hierarchy, which means the duplicates are no longer siblings of each other?

Note that the preceding-sibling method of removing duplicates has O(n*n)
performance. For a scaleable solution, you need to use <xsl:key> and the
Muenchian method.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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.