How to print the Zaurus PDA XML Address Book, ToDo- and
Calendar Entry
Updated : 20.Dec.2003
All data from the Zaurus applications are stored in XML files (ROM Version 2.36 XML, The new 3.1 version us a binary format).
This fact make it easy to convert them into a PDF file and print them out.
All you need is the right XSL file and the tool FOP
(Formatting Objects Processor) from Apache.
The new Version separates the addresses with the first letter of the family
name if this changes (see Example). This make it more readable.
For this reason you need the Java class charholder.jar.
If you don't like the new format, the old version is still available
(zaurusAddress_fo_v1.xsl).
Step by step description :
- Download and install FOP from
FOP xml.apache.org
. (I used version 0.20.4)
-
Store the files (save as) :
in the FOP directory.
-
Copy the XML files from you Zaurus into the fop directory.
You find :
-
the addressbook.xml file in directory
/home/root/Applications/addressbook on your Z.
-
the todolist.xml file in directory
/home/root/Applications/todolist on your Z.
-
the datebook.xml in the directory
/home/root/Applications/datebook on your Z.
- copy the XML file with ftp (or sftp) from your Zaurus, or
save them with the ´Backup and Restore tools´
-
start fop :
Add the charholder.jar to your Java CLASSPATH. This is different of
the operating system and shell you are using.
Example :
UNIX bash : export CLASSPATH=${CLASSPATH}:/your_path_to/charholder.jar
UNIX csh : setenv CLASSPATH ${CLASSPATH}:/your_path_to/charholder.jar
NT DOS box : set CLASSPATH=%CLASSPATH%;/your_path_to/charholder.jar
- Display the output on the screen :
fop.sh -d -xsl zaurusAddress_fo.xsl -xml addressbook.xml -awt
-
Or create a PDF file with :
fop.sh -d -xsl zaurusAddress_fo.xsl -xml addressbook.xml -pdf addressbook.pdf
fop.sh -d -xsl zaurusToDo_fo.xsl -xml todolist.xml -pdf todolist.pdf
fop.sh -d -xsl zaurusCalendar_fo.xsl -xml datebook.xml -pdf datebook.pdf
Example :
Example of the Addressbook output : addr_example.pdf
Example of the Calendar output : datebook.pdf
Hints :
The page size in the style sheet is for European A4 standard paper.
For other format´s please edit them.
If FOP has problems to display the address book.
You have to edit the addressbook.xml file.
FOP didn't like special chars or if XML tag are longer then one line.
If this happens you have to packetize the lines.
(The Notes="long notes line" is a good candidate for this error)
Requirement´s and Link´s :
Have Fun
Stephan
Feedback :