Subject: RE: [xsl] How parser maintains and XML tree From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Sun, 30 Jun 2002 20:22:59 +0100 |
> I was just wondering that the xslt parsers use DOM > structure and I am still not convinced that the parser > would be able to maintain a large XML tree say, 50Mb > or more. > It will show the Out of memory problems, if this is > the case then what is the solution for this problem? > Otherwise in case it works for large XML struct. then > how do they maintain in the memory????? You are right that XSLT requires a tree representing the whole document and that pretty well all current processors require this tree to be in memory. There are Saxon users who have successfully processed documents over 100Mb but this does need a lot of memory. If the transformation is simple, you can often break it up so that each "record" of the source file is transformed separately. With Saxon, you can use saxon:preview to achieve this. With other processors, you can write a SAX filter that breaks the large document into lots of small documents and transforms each one in turn. 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] How parser maintains and , Mike Brown | Thread | Re:correction* [xsl] getting text n, Vasu Chakkera |
RE: [xsl] Finding unique nodes in a, Michael Kay | Date | [xsl] XSLT/SVG variables question, Harry J. Foxwell |
Month |