XML (XSL) Error — Converting HTML to PDF (Java)

glennsea

New Member
I am nearly finished with a program to convert HTML to a PDF format. My issue is more specific than this program though. I have an XSL file that is giving me some grief when I try to use it with my program. When using javax.xml.transform.Transformer.transform(source, result) I am getting the following warning and error messages due to my XSL styleSheet:Compiler Warnings: Attribute 'leader-length' outside of element.
ERROR: 'Error(Unknown location): fo:list-item is not a valid child element of fo:block.'The XSL file in question can be found here: http://webcoder.info/downloads/xhtml2fo.htmlIt is recommended by this tutorial: https://blogs.oracle.com/chrisf/entry/converting_html_to_pdf_usingIf that link isn't working, I'll paste in the exact code here. Thanks!EDIT3: This is some of the HTML I am trying to use as an example:http://docs.oracle.com/javase/1.4.2/docs/tooldocs/solaris/classpath.html
 
Back
Top