[dbdoclet] Re: Proposals for release 0.51

On Today at 2:07pm, HR=>Haroon Rafique <haroon.rafique@xxxxxxxxxxx> wrote:

HR> 
HR> During that last step of converting from xml to pdf, looking at the
HR> output that flies by from the ant task, I see 258 occurences of the
HR> following 2 errors:
HR>     258      [java] [ERROR] Error in relative-align property value
HR>         'baseline': org.apache.fop.fo.expr.PropertyException: No
HR>         conversion defined
HR>     258      [java] [ERROR] Unknown enumerated value for property 
HR> 'relative-align': baseline
HR> 
HR> and 19 occurences of the following 2 errors:
HR>      19      [java] [ERROR] property -
HR>         "background-position-horizontal" is not implemented yet.
HR>      19      [java] [ERROR] property - "background-position-vertical"
HR>         is not implemented yet.
HR> 

Never mind. I used Tidbit to see how it generates PDFs and modeled my ant 
targets exactly like the tidbit project file. After that no more annoying 
erorrs.

Just in case this might help someone else, this is how I understand the 
process (I made some customizations for myself re: filenames, etc):

1. use com.mf.doclet.docbook.DocBookDoclet to create reference.xml
2. copy reference.xml to reference-001.xml
3. use com.elharo.xml.xinclude.SAXXIncluder to generate a new
   reference.xml using reference-001.xml as input arg
4. use org.apache.xalan.xslt.Process to convert reference.xml to reference.fo
   using fo.xsl
5. use org.apache.fop.apps.Fop to convert refrence.fo to reference.pdf

I must admit, I don't understand half of the transformations but it works 
for me very well now.

My old process with the annoying errors was something like the following 
(obviously I was missing something really fundamental):

1. use com.mf.doclet.docbook.DocBookDoclet to create reference.xml
2. use com.elharo.xml.xinclude.SAXXIncluder to generate a new
   reference-full.xml using reference.xml as input arg
3. use org.apache.fop.apps.Fop to convert reference-full.xml to 
reference.pdf using docbook.xsl

Output PDFs of both the procedures looked pretty similar.

Regards,
--
Haroon Rafique   <haroon.rafique@xxxxxxxxxxx>
Student Information Systems, University of Toronto

Other related posts: