[Mono-devel-list] conserving memory in XslTransform
Gonzalo Paniagua Javier
gonzalo at ximian.com
Tue Jul 1 21:04:26 EDT 2003
El mar, 01-07-2003 a las 22:20, Varga Zoltan escribió:
> Hi,
>
> I found the following comment in XslTransform.cs:
>
> * If I do this, the <?xml version=... is always present
> if (-1 == xsltSaveResultToFilename (outputfile,
> resultDocument, stylesheet, 0))
> throw new XmlException ("Error xsltSaveResultToFilename");
>
> Could the author of this comment tell me what was the
> problem with calling xsltSaveResultToFilename ? I would like to change
> the code to
> use it, since the current method of converting the result to
> a string
> consumes lots of memory, and leads to ugly messages from libgc.
That's my fault. I didn't know of xsl:output by the time I wrote that
and soem tests i used had that line on it. I did that to remove it O:-).
Feel free to uncomment that.
-Gonzalo
More information about the Mono-devel-list
mailing list