Subject: RE: [xsl] preceeding:sibling? From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Tue, 9 Apr 2002 10:26:51 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] preceeding:sibling?, Ahmad J. Reeves | Thread | [xsl] preceeding:sibling, Ahmad J Reeves |
RE: [xsl] xml as parameter from ser, Michael Kay | Date | RE: [xsl] Removing namespaces from , Michael Kay |
Month |