[Kde-imaging] kipi htmlexport
Aurelien Gateau
aurelien.gateau at free.fr
Sat Jan 6 00:02:21 CET 2007
Le Vendredi 5 Janvier 2007 23:34, Marcelo Anelli Colla a écrit :
> Aurelien,
>
> your last sentence is correct, but I am not sure about what I am saying
> because I don not know kipi plugins, just only use :) :
>
> 1- gallery.xlm contains variables or is a database for the template.xls
> scripts?
> 2- if above is yes, how can I add more variables to gallery.xlm? Or can be
> to another xlm file? Can I call from the template script?
> 3- If above is yes, that means that a "preprocessor" is creating the
> gallery.xlm file from the digikam database, but can add parameters from
> theme.desktop?
>
> Seem I had understand some basic instructions for XSLT but not the
> interface XLM / XLST. If some links to page for learning will be
> appreciated,
Here is how the KIPI plugin works:
1. It generates the gallery.xml file based on the album info. This file is
totally independent from the theme used.
2. According to the theme you selected, the plugin copies the theme files and
combines gallery.xml with template.xsl to produce the HTML pages. It does
this through libxslt [1]. You can do the same using the xsltproc binary:
xsltproc <params> /path/to/template.xsl /path/to/gallery.xml
For now, <params> are used to translate the texts used in the HTML output, so
that you don't need to provide translated template.xsl files. Available
parameters are $i18nCollectionList, $i18nPrevious and $i18nNext.
This means you need to replace <params> with something like this (line cuts to
improve readability):
--param i18nNext next \
--param i18nPrevious previous \
--param i18nCollectionList collection
In French, it would look like this:
--param i18nNext Suivant \
--param i18nPrevious Précédent \
--param i18nCollectionList Collection
Aurélien
[1]: http://www.xmlsoft.org/XSLT/
More information about the Kde-imaging
mailing list