Re: [xslt] saving output of xsltApplyStyleSheet ???



hello
thanks a lot.

one more question:
can you tell me where to find the functin "dscatf "
and the macros STRING, ERRORCHK and CLEANUP ???
are they part of libxslt?? I couldn't find them.
or to I need some more libs???

markus





On Friday 11 January 2002 10:51, you wrote:
>  >    buf = xmlOutputBufferCreateIO(xmlIOWrite, xmlIOClose, &xmlIOContext,
>  > enc);
>
> Uhm, forgot to mention that xmlIOWrite and xmlIOClose are functions which
> write to a memorybuffer (dscatf() is a resizing string concatenation
> function):
>
> static int xmlIOWrite(void *context, const char *buf, int len
> __attribute__((__unused__))) {
>   char  **result = (char **) context;
>
>   dscatf(result, "%s", buf);
>   return len; /* assume it worked */
> }
>
> static int xmlIOClose(void *context __attribute__((__unused__)))
> {
>   return 0;
> }
>
>                                                                    robert
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]