Feature #1548

Updated by Serge Heiden almost 4 years ago

* copy XML/w+CSV XML/W import to XTZ and add the XSL injection feature
** entry menu
** scripts in scripts/import
* add ** new source directory sub-directories management form parameters
** 'dtd' sub-directory contains * modify the dtd files to use with XSLs
** 'css' sub-directory contains the css files to use with HTML pages in editions
** 'xsl' sub-directory contains the xsl types sub-directories (if a directory is absent or empty it is not used)
*** '1-front' sub-sub-directory containing the xsl stylesheets to process the sources at the beginning of the
import process. The xsl are applied in the lexicographical order of their file names. (examples: split.xsl, merge.xsl...) form :
*** '2-posttok' sub-sub-directory containing the xsl stylesheets to process the xml-txm representation of the sources after the tokenization phase (all words are encoded). The xsl are applied in the lexicographical order of their file names. tokenizer section
*** '3-edition' sub-sub-directory containing add "re-tokenize" XSL at the xsl stylesheets to build the HTML edition from the xml-txm representation using the pagination done by the pager. The xsl are applied in the lexicographical order of their file names. xsl receive the following parameters: "number-words-per-page", "pagination-element", "import-xml-path". end (FR: XSL de resegmentation)
**** example
* modify the import form :
** add section "Plans textuels"
*** liste des balises codant le hors-texte (transform to Regexp)
*** liste des balises codant le hors-texte à éditer (affichées dans l'édition) (transform to Regexp)
** remove move "front XSL" section to the top (after description section)
*** note: "add parameter" is broken
** move "font" section after "editions" and before "commands"
** modify Éditions section
*** "Editions" -> "Éditions"
**** add 'images' URI declaration (see below) *** send les paramètres d'édition aux XSLs : "number-words-per-page", "pagination-element", "import-xml-path".
<pre>
[x] Construire l'édition

Nombre de mots par page [500] Élément de pagination [pb]
Répertoire local d'images de facsimilés [...]

Personnaliser l'édition

Nom de l'édition : default
Feuille XSL pour produire le HTML [...]
Feuille XSL pour paginer le HTML [...]

Ajouter une édition Supprimer une édition

Nom XSL générant le HTML XSL de pagination
default mon-html.xsl mon-pager.xsl
facs facs-builder.xsl facs-pager.xsl

</pre>

* transfert the edition macros into the XTZ import module

Back