Ceci est une ancienne révision du document !
Table des matières
Imports dans ChainEdit 3
Principes
Un import consiste à prendre le contenu d'un fichier (en format zip) pour le transformer dans un format reconnu par Chainedit. Par exemple transformer un fichier OpenOffice utilisant une feuille de style spécifique en projet ChainEdit dans le format Opus. Un import a donc un format d'entrée et un format de sortie. Le paramétrage des imports a changé avec ChainEdit 3. Un import est constitué d'un ensemble d'instruction de copie de répertoires et/ou de fichiers, et d'un ensemble de fichiers XSL de traitement de données.
Paramétrage
Un import est constitué d'un fichier XML de paramétrage qui se présente comme suit (ici un import odf to opus):
<IMPORT id=“ODFTOOPUS” label=“ODFTOOPUS” chainEditVersion=“3” version=“1.0.0”>
<TARGETSCHEMA id="OPUS"/> <ORIGINALSCHEMA id="ODF"/> <BEFOREPROCESS> <COPYDIR ordre="0" frompath="\Pictures" topath="\ressources\images"/> </BEFOREPROCESS> <IMPORTXSL> <XMLFILE path="content.xml"/> <XSLFILE ordre="0" path="\xsl\ODF_TO_XML_LANCEUR.xsl"/> <XSLFILE ordre="1" path="\xsl\ODF_TO_XML_LANCEUR2.xsl"/> <XSLFILE ordre="2" path="\xsl\ODF_TO_XML_LANCEUR3.xsl"/> <XSLFILE ordre="3" path="\xsl\ODF_TO_XML_LANCEUR4.xsl"/> <XSLFILE ordre="4" path="\xsl\ODF_TO_XML_LANCEUR5.xsl"/> <XSLFILE ordre="5" path="\xsl\ODF_TO_XML_LANCEUR6.xsl"/> </IMPORTXSL> <AFTERPROCESS> <COPYFILE ordre="0" frompathwithfilename="\Projet\newprojet.xml" topathwithfilename="\project.xml"/> </AFTERPROCESS>
</IMPORT>