Files
Ant file : bibtex_to.ant
The ANT take the folowing parameters :
InputPath : the path of a .bib file
OutputPath : the path of a directory (by default bibtec_to/result)
TargetName : the name of the target to call
The ANT contains the following instructions :
Convert : Call the target to turn bibtex into bibtxml, the target to prepare the directory and one of the following target :
all : which call dokiel, opale and optim target
dokiel : which call HdocToDokiel target
opale : which call HdocToDokiel target
optim : which call HdocToOptim target
Preparation : The script delete all old folders and create new one.
BibtexToBibXml : Convert Bibtex into Bibtex Xml with bibtex.jar.
BibXmlToHdocBib : Conver bibtex XML into Hdoc.
HdocToDokiel : Create and execute another ant which create all the .ref (which respect dokiel schema)
zipDokiel : Zip the .ref into a .scar file (which respect dokiel schema)
HdocToOpale: Create and execute another ant which create all the .ref (which respect opale schema)
zipOpale: Zip the .ref into a .scar file (which respect opale schema)
HdocToOptim : Create and execute another ant which create all the .ref (which respect optim schema)
zipOptim : Zip the .ref into a .scar file (which respect optim schema)
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 :
xslFile : the XSL file to use in the new ant file (it can be OneBibXMLToDokiel.xsl, OneBibXMLToOpale.xsl, OneBibXMLToOptim.xsl)
xslOutput : the extension of each entry (ref ou refs)
in : the file the new ant will use in the transformation
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)
Use the param $Position to know wich entry to deal with
Add the different tag to respect dokiel schema for bibliography
The node are selected in a specific order to match the Chicago Manual of Style 16th edition (author-date) bibilography style.
XSLT : OneBibXMLToOpale.xsl
This file converts the hdoc file in .ref files (one for each entry)
Use the param $Position to know wich entry to deal with
Add the different tag to respect dokiel schema for bibliography
The node are selected in a specific order to match the Chicago Manual of Style 16th edition (author-date) bibilography style.
XSLT : OneBibXMLToOptim.xsl
This file converts the hdoc file in .refs files (one for each entry)
Use the param $Position to know wich entry to deal with
Add the different tag to respect dokiel schema for bibliography
The node are selected in a specific order to match the Chicago Manual of Style 16th edition (author-date) bibilography style.