Files

Ant file : dokiel_to_hdocbib.ant 

The ANT take the folowing parameters :

  1. InputPath : the path of a .bib file

  2. OutputPath : the path of a file (by default dokiel_to_hdoc/result/hdocBib.xml)

The ANT contains the following instructions :

  1. Convert : Call the target to prepare and clean the directory, to create a tmp XML and to turn all the .ref into one hdocbib.

  2. Preparation : Delete the old directories and create new one.

  3. CleanDirectory : Clean the directory, delete the tmp directory.

  4. Createxml : Create a tmp.xml file which contain all the entry of each .ref file.

  5. Dokiel_to_hdoc : Conver the tmp.xml file into one hdocbib file.

XSLT : getOneDoc.xsl

This file copy each .ref file present in the directory into one XML file

  • Find each .ref file

  • Copy the content of each file

  • Add a <filePath> tag which contains the file path of the .ref file.

XSLT : DokielHdoc.xsl

This file read the tmp.xml file to create an hdocbib file :

  • Turn each entry of the tmp.xml file to turn it into hdoc file

  • Use the id of each entry as id and name