You haven't shown any input XML, and you haven't explained the relationship of the "XML output" to the "final rtf report". And where does XSL-FO fit into the picture?
Your code is highly non-portable because of its extravagant use of disable-output-escaping. This looks, on the surface, to be completely unnecessary. Use of disable-output-escaping without good reason is usually a sign that the stylesheet author has not properly mastered basic XSLT concepts.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|