XML -> RTF via XSL
I want to convert an XML file into RTF using XSLT (or any other transformation available). I have output an XML file from the database system. At present I have used a RTF containing a blank filled table as a template and replaced bits of it with XSLT which populate the data parts from my XML. This works fine. However in order that my export from the database is valid and well formed I have escaped all the ampersands, quotes, apostrohies, and angle bracket to &, ", etc. Using Saxon I have found that the " and &apos get replaced with apostrophe and quote (which is great), but the brackets and ampersands stay escaped. It would be better for me if this did not happen since Word cannot understand the escaped version and they come out raw (& etc). These characters could exist in any field in the XML, therefore I cannot use: <xsl:text disable-output-escaping="yes" | "no"></xsl:text> since I assume this cannot be placed around the whole document. Does anyone know how to get these characters converted back to the original characters for output into the rtf file? Rob XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format