[xsl] RTF to XHTML and back

Subject: [xsl] RTF to XHTML and back
From: Mitch Amiano <mitch.amiano@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Oct 2002 09:02:36 -0400
Font handling is usually done through CSS, either through in-line style attributes, an internal CSS stylesheet element, or an external CSS stylesheet file.

If the style information is already present in your XHTML, you have to determine where it is held.

If font info is in in-line style attributes, then you can just pull the value out of the style attribute.

If the font info is stuck in a stylesheet element or external CSS file, you may have some difficulty addressing it. It can be done, but the solution may be ugly. Best bet there is if you have access to a DOM of the CSS styles.

I can't see what that will get you except slower performance. But then, you are dealing with RTF in the middle anyway.

Date: Wed, 23 Oct 2002 23:22:47 -0400
From: Kelly <kellyrocks@xxxxxxxxxxxx>
Subject: [xsl] RTF to XHTML and back

Hey all, I'm really stuck here so any help would be GREATLY appreciated. I've been working with XML for awhile now using the Jabber protocol which is entirely based on XML. I've mostly been using XML in a DOM method and know nothing about XSL but I'm stuck with a problem I'm very stuck on and I think XSL is my method of solving it. Jabber uses XHTML for formatted text (very basic basic support, mainly only font face, font color, font style). All the controls I use on my development platform (.NET framework) use RTF. So I need to convert RTF to XHTML, then incoming XHTML to RTF.

I followed a very basic tutorial on using the XSL transform engine to transform a XML document to RTF, but it didn't contain any font info in the XML file or the .xsl file that described the RTF format.

I'm really unsure what to do. Am I just requiring the right XSL files, to describe XHTML and RTF and throw them into the XSL transform engine?
Another thing is, alot of people seem to be doing XML-FO to RTF or HTML etc. Maybe I should go to XML-FO as an intermediate format? For example going RTF to XML-FO then XML-FO to XHTML.

Any help on this subject would greatly be appreciated. I've posted to several .NET forums etc and it seems nobody has really tackled this that I can find anyways.

Again much appreciated and thanks for listening to my post.

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread