Re: The suitability of XSL
Michael Ludwig <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <20091207224629.GE1888@wladimir> |
Kip Hampton schrieb am 07.12.2009 um 14:38:58 (-0800): > Most of the heartache (and crappy XSL) I've seen over the years has > come from cases where people-- myself included-- tried to use XSL as a > functional, iterative programing language. They try to write big rules > that transform large chunks of the document at once instead of writing > smaller template rules that use selective recursion. > > Just my .02 (not adjusted for inflation) + .02 One very general and easy to follow rule: Don't use XSLT (or any other in-memory processing model, like DOM) for giant input, at least not when resource efficiency matters, as in a server environment. Consider that the in-memory representation of a 10 MB XML document may fill up 100 MB of RAM. In that case, preprocess your data, by using a SAX filter or whatever means is suitable. Or avoid giant documents in the first place. -- Michael Ludwig _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs