coreopsis flower

Transform xml files into html files

If you would like to download our software and develop the html pages here is how you can do that:

1.prepare your xml files. here is an example: (http://www.isrl.uiuc.edu/~openkey/prairieplant/XML/Amorpha_canescens.xml)

2. Put the plant information into a spreadsheet. Below is the format we used (columns A-E) YOU MUST USE THIS FORMAT! You can use one of our sample files. There are two sample files that you can use to format your data. You can download either one by clicking on its name and following your web browser's download instructions. image3.xls is a sample file that has been filled out already. imageblank.xls is a file with just header information so you will not need to delete anything.

3. The following program can combine the image and xml into one xml file.
Download these files to in your xml file folder and create a folder with a name xmlwithImage:

CombImage.pl
grandxmltohtml.sh
To run the program under unix, use comand: ./grandxmltohtml.sh

Here is an example of xml files with image: (http://www.isrl.uiuc.edu/~openkey/prairieplant/XML/xmlwithImage/Amorpha_canescens.xml)

4. The following program can print xml files into grand xml files.
Download these files to in your xml file folder and create a folder with a name xmlwithImage:

print_grand_xml.xsl
xmltograndxml.sh
To run the program under unix, use comand: ./xmltograndxml.sh

Here is an example of grand xml files: (http://www.isrl.uiuc.edu/~openkey/prairieplant/taxon/xsl/xmlTemp/Amorpha_canescens.xml)

5. Download these files to that directory:

displaytohtml.xsl
grandxmltohtml.sh
The grandxmltohtml.sh file includes following code:
for name in `ls /home/openkey/public_html/prairieplant/taxon/xsl/xmlTemp/*.xml`
do
newname=`basename $name ".xml"`
/usr/local/j2sdk1.4.2/bin/java org.apache.xalan.xslt.Process -in /home/openkey/public_html/prairieplant/taxon/xsl/xmlTemp/$newname.xml -xsl displaytohtml.xsl -out html/$newname.html done
1. change first line to point to your xml files folder.
2. change the forth line to make sure your j2sdk version is correct, change directory to your own xml files directory, and last change the output directory
To run the program under unix, use comand: ./grandxmltohtml.sh

Here is an example of html files: (http://www.isrl.uiuc.edu/~openkey/prairieplant/Speciespages/Liatris_aspera.html)

Any comment or question? Contact Lilli Szafranski at (217) 333 - 7123

 

 

back to top

Home -Contact - Sitemap
Last updated on Feb 9, 2004