Re: [xslt] ToString or size of output.
- From: crille <crille cccab net>
- To: xslt gnome org, Daniel Veillard <veillard redhat com>
- Subject: Re: [xslt] ToString or size of output.
- Date: Tue, 14 Aug 2001 22:47:42 +0200
[..]
> http://mail.gnome.org/archives/xslt/2001-July/msg00166.html
> note the bug I pointed in my answer. Seems I will have to provide
> something similar.
So this isn`t implemented ?
Is there something i can use? I really don't want to patch libxslt becouse
this is an application for some clients. So i want to use standard library
calls.
>
> > I need to now acactly how big the string is before using it.
>
> That libxml can't do ! I can't tell you in advance what will be the
> size of a serialized tree, far too complex, depends of encoding too...
I must have been to unclear, what i ment is that i cant use a function call
like xsltSaveResultToFd() i have to now acactly how large the string is after
its parsed before its printed.
Thats why i want to have it in a string then i can call strlen() before
printing. I'm building a very light weight web/xslt-server so i have to write
the proper content-lenght http-header. I also want to be able to cache a
transformation server side (html).
>
> > 2)
> > How can i retrieve a PI from the xmldoc? I need to findout the value of
> > the <?xml-stylesheet ?> tag from the xml file before parsing.
>
> Hum, before parsing it's hard to tell what's in a file.
what i meant is that i parse the xml, find out the value of <?xml-stylesheet
?> and use the value to find out what xsl file to parse and use for the
tranformation.
Crille
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]