XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Gopalkrishna SathyanarayanaSubject: XSLT for XML to RTF Conversion
Author: Gopalkrishna Sathyanarayana
Date: 30 Dec 2004 04:31 AM
Hi All,
I have an XML file which i need to convert to RTF & HTML format. I have written stylesheet(xslt) for
both RTF & HTML conversion. XSLT to render HTML is working absolutely fine. The output should have images
,tables,Table of contents and breking up the text in to multiple pages,section,paragraph....
I can do all these things for HTML conversion.
How do i get all these options for RTF conversion? i am able to do some simple text formating but nothing else

Here with i am attaching the Source XML file and also the HTML oupput of the xml file. Can some body help me
to build the XSLT for RTF conversion especially for Tables,TOC,Images,Pagebreaks,section breaks......

Thanks in Advance
Gopalkrishna K.S


UnknownTORTF.xml
XML source file to render in RTF format

Unknowntest.htm
HTML output with the help of XSLT

Postnext
Tony LavinioSubject: XSLT for XML to RTF Conversion
Author: Tony Lavinio
Date: 30 Dec 2004 11:28 AM
Really, the best way is to make a document in Word (or some other
tool that supports RTF) that looks like your target document, and
save it as RTF, then build the XSLT from that. RTF isn't very
complicated to use in a 'fill-in-the-blanks' type of problem like
you are looking for.

There are two previous posts on this subject; I hope they can help.
http://www.stylusstudio.com/SSDN/default.asp?action=9&read=3084&fid=48#8678
http://www.stylusstudio.com/SSDN/default.asp?action=9&read=2923&fid=23#8251

Postnext
Gopalkrishna SathyanarayanaSubject: XSLT for XML to RTF Conversion
Author: Gopalkrishna Sathyanarayana
Date: 30 Dec 2004 09:59 PM
Hi
Thanks for the reply, I tried doing that by opening the RTF document in
notepad to see the RTF formatting tags.But I really could not make anything
out of that as there were lots of junk.

Postnext
(Deleted User) Subject: Re: XSLT for XML to RTF Conversion
Author: (Deleted User)
Date: 31 Dec 2004 08:52 AM
Hi,
I agree that RTF looks like junk characters; in short, it embeds control
codes in the document text, using "\" as the escape character.
For instance, a string like "\b text\b0" represents "text" using a bold font.
You can read the specs for RTF 1.6 (used by Microsoft Word 2000) at this URL:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.asp

Hope this helps,
Alberto


Postnext
Tony LavinioSubject: Re: XSLT for XML to RTF Conversion
Author: Tony Lavinio
Date: 31 Dec 2004 09:51 AM
RTF is also rather forgiving. Word by default writes out a lot of extra
tags, but you can get along rather well by simplifying and just emitting
the tags that you need.

To see how much you can ignore, check out the examples referred to
earlier. Load them, and then immediately re-save them from Word. Notice
how much it adds?

Following Alberto's advice, and looking carefully at the specification,
you will see how little you actually have to emit from your XSLT to get
really good output.

Using Google, I found a more complex example. See
http://transfer.filemaker.com/collection/rtf.zip

Posttop
Rob NapierSubject: XSLT for XML to RTF Conversion
Author: Rob Napier
Date: 31 May 2005 04:46 AM
Hi
I am attacking the same problem. There seems to be very little being done in the OSF world to directly deal with this problem. I'm interested in developing a GUI interface to read documents created in Word Processors (for example) and then merging data content with RTF 'tags' to create styled documents.
I am keen to talk to anyone who has tackled this task.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.