Files

Ant file : bibtex_to.ant 

The ANT take the folowing parameters :

  1. InputPath : the path of a .bib file

  2. OutputPath : the path of a directory (by default bibtec_to/result)

  3. TargetName : the name of the target to call

The ANT contains the following instructions :

  1. Convert : Call the target to turn bibtex into bibtxml, the target to prepare the directory and one of the following target :

    1. all : which call dokiel, opale and optim target

    2. dokiel : which call HdocToDokiel target

    3. opale : which call HdocToDokiel target

    4. optim : which call HdocToOptim target

  2. Preparation : The script delete all old folders and create new one.

  3. BibtexToBibXml : Convert Bibtex into Bibtex Xml with bibtex.jar.

  4. BibXmlToHdocBib : Conver bibtex XML into Hdoc.

  5. HdocToDokiel : Create and execute another ant which create all the .ref (which respect dokiel schema)

  6. zipDokiel : Zip the .ref into a .scar file (which respect dokiel schema)

  7. HdocToOpale: Create and execute another ant which create all the .ref (which respect opale schema)

  8. zipOpale: Zip the .ref into a .scar file (which respect opale schema)

  9. HdocToOptim : Create and execute another ant which create all the .ref (which respect optim schema)

  10. zipOptim : Zip the .ref into a .scar file (which respect optim schema)

  11. CleanDirectory : Delete the unecessary folder created while the convertion

Jar : bibtex.jar

This jar will parse the .bib file and create an xml file which contains each entry from the .bib file.

This jar was created from the bibtexml projet that you can find here.

XSLT : BibToHdoc.xsl

This file converts the .bib file to the hdoc format.

  • specify the good namespace of hdoc format

  • treat this type of node : article, book, booklet, conference, manual, techreport, mastersthesis, phdthesis, inbook, incollection, proceedings, unpublished, misc

  • for each node treat the node which respect the hdoc format (see hdoc format) if a node doesn't respect the schema the xsl put it in a <note>. Like that the information is not lost

XSLT : SeparateXmlt.xsl

This file read the hdoc bibliography file to create an ant file

  • take the followings parameters :

    1. xslFile : the XSL file to use in the new ant file (it can be OneBibXMLToDokiel.xsl, OneBibXMLToOpale.xsl, OneBibXMLToOptim.xsl)

    2. xslOutput : the extension of each entry (ref ou refs)

    3. in : the file the new ant will use in the transformation

    4. out : the ouputpath of the directory where each entry will go

  • for each entry of the hdoc file create an xslt task which :

    • Call "xslFile" for "in" file

    • Set the name of the out file with the id of the entry

    • Find the count of this entry and put it as param ($Position) in the xsl transformation

XSLT : OneBibXMLToDokiel.xsl

This file converts the hdoc file in .ref files (one for each entry)

XSLT : OneBibXMLToOpale.xsl

This file converts the hdoc file in .ref files (one for each entry)

XSLT : OneBibXMLToOptim.xsl

This file converts the hdoc file in .refs files (one for each entry)