Re: [xslt] XSLT transformation to Plain Text using Python bindingsrequires using children().serialize()?
- From: John Fleck <jfleck inkstain net>
- To: xslt gnome org
- Subject: Re: [xslt] XSLT transformation to Plain Text using Python bindingsrequires using children().serialize()?
- Date: 24 Aug 2002 06:18:59 -0600
On Fri, 2002-08-23 at 22:21, Craeg K Strong wrote:
> Hello:
>
> Thanks for the explanation, it is very helpful.
>
> I rewrote my example as per instructions and it works fine.
>
> However, I still have a question, if you'll indulge me....:-)
>
> Because I am writing a pure service, it would be nice to never
> write anything out to disk. Is there a "file-like object" somewhere
> that you have written or can recommend for use in lieu of
> an actual file?
>
> The contract my server must fulfill is that it must return the
> transformed contents as a string. I saveResultToFilename()
> only to immediately read it back in. Of course, this is just a
> small nit, but it is the reason I went off the rails instead of
> following the documentation (which I did read, honest :)
>
You can use instead xsltSaveResultToFile, using "stdout", to whit:
xsltSaveResultToFile(stdout, final_doc, stylesheet);
http://xmlsoft.org/XSLT/html/libxslt-xsltutils.html#XSLTSAVERESULTTOFILE
Cheers,
John
--
John Fleck
jfleck@inkstain.net (h) jfleck@abqjournal.com (w)
http://www.inkstain.net http://www.abqjournal.com
"Sometimes, a diner is all about the mac and cheese."
- Zippy the Pinhead
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]