> 1. Can I use Ns_TclGetConn(NULL) in a function which is set to handle
> url2file?
You can use that, or just Ns_GetConn. However, neither of these will
work in 4.0.
> 2. I'm using libxml2+libxslt and there's a function
> xmlSetGenericErrorFunc(). I want my XML/XSLT parsing errors to be printed
> out on output.
>
> I suppose I could create a hashtable+Ns_Mutex, create a structure, connect
> it (by the hashtable) with Ns_Conn. But it seems a bit inefficient to
> me...
>
> Any other way to store data connected with Ns_Conn.
>
> I probably want to store a DString and an int to check the number of
> errors (mostly if any occured :) and print out the errors using
> Ns_QuoteHtml()...
>
> Any ideas on how to write that?
Use a TLS. Check out Ns_TlsAlloc, Ns_TlsGet, Ns_TlsSet. Look at
dstring.c and serv.c for examples.