Re: library.gnome.org
- From: Shaun McCance <shaunm gnome org>
- To: Frederic Peters <fpeters 0d be>
- Cc: gnome-web-list gnome org, Olav Vitters <olav bkor dhs org>
- Subject: Re: library.gnome.org
- Date: Thu, 02 Aug 2007 10:29:44 -0500
On Tue, 2007-07-31 at 11:42 +0200, Frederic Peters wrote:
> [1] Curtis: Thank for your suggestion, I tried to use libxml2/libxslt
> but it didn't work since we create several files and thus pointed
> xsltproc to a directory, which didn't work when using the API.
> (error about output being a directory).
Well, you just have to do things differently then. :)
There's nothing xsltproc does that can't be done with
the libxslt API. I'd suggest setting the stylesheet
parameter db.chunk.chunk_top to true(). Then you can
omit the call to saveResultToFilename.
You need to pass the output directory in, so you have
to use runStylesheet instead of applyStylesheet. And
you'll need to call exsltRegisterAll at some point.
But hey, what's the point? Well, if you use libxslt
directly, you can register your own extensions which
you can use in your XSLT customizations. That means
you could just steal the yelp:cache extension from
Yelp, which does speed things up.
We could probably also come up with extensions to
make index generation faster for gtk-doc.
--
Shaun
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]