You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Mohamed, Amgad" <Am...@ams-europe.com> on 2006/02/16 16:07:58 UTC
convert from XSL-FO to MSWORD
Dear All,
Is there is any way to convert from XSL-FO to MSWORD?
Best Regards,
Amgad Hanafy.
Re: convert from XSL-FO to MSWORD
Posted by Chris Bowditch <bo...@hotmail.com>.
Mohamed, Amgad wrote:
> Dear All,
>
> Is there is any way to convert from XSL-FO to MSWORD?
I guess you could convert XSL-FO to RTF, as Word can open RTF files. FOP
has an RTF Renderer which you can try, although its not as complete as
the PDF Renderer.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: convert from XSL-FO to MSWORD
Posted by Clay Leeds <we...@mac.com>.
You could also convert to RTF. If that's good enough, you're done. If
not, I suspect there are tools which convert from RTF to MS Word.
On Feb 16, 2006, at 7:52 AM, Jay Bryant wrote:
> > Is there is any way to convert from XSL-FO to MSWORD?
>
> Sure. You'd need to write a collection of templates to match the
> elements of an XSL-FO file and create the corresponding WordML
> elements. I think a truly generic converter would be a LOT of work,
> but, for situations where you are dealing with a well-known set of
> documents, it shouldn't be too hard.
>
> I've done other kinds of XML to WordML, and XSL-FO is just another
> kind of XML.
>
> HTH
>
> Jay Bryant
> Bryant Communication Services
>
Clay Leeds
webmaestro@mac.com
My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet
Re: convert from XSL-FO to MSWORD
Posted by Jay Bryant <ja...@bryantcs.com>.
> Is there is any way to convert from XSL-FO to MSWORD?
Sure. You'd need to write a collection of templates to match the elements of an XSL-FO file and create the corresponding WordML elements. I think a truly generic converter would be a LOT of work, but, for situations where you are dealing with a well-known set of documents, it shouldn't be too hard.
I've done other kinds of XML to WordML, and XSL-FO is just another kind of XML.
HTH
Jay Bryant
Bryant Communication Services
RE: convert from XSL-FO to MSWORD
Posted by "Mohamed, Amgad" <Am...@ams-europe.com>.
I found this style sheet http://fo2wordml.sourceforge.net/ which convert xsl-fo documents into WordML this succeeded with text but when there is graphics the images are omitted in addition to that not all the colors are mapped ,does any one know any reliable style sheet to convert from xsl-fo to wordML with all formatting tags (tables , images , links , columns, colors,etc...)?
Is there any XSLT to convert to XML to gnumeric xml , CSV?
Best Regards,
Amgad Hanafy,
amgad.mohamed@ams-europe.com
From: Louis.Masters@log-net.com
Sent: Thu 16/02/2006 06:44 م
To: fop-users@xmlgraphics.apache.org
Subject: Re: convert from XSL-FO to MSWORD
Below is a VERY simple framework sample stylesheet to get you started. I did not go this route due to the fact that WordML is not supported in older versions of Word:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?mso-application progid="Word.Document"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<w:wordDocument>
<w:body>
<w:p>
<w:r>
<w:t>This is a very simple paragraph that will be rendered OK in Word on an XP machine. Add stuff here and enjoy.</w:t>
</w:r>
</w:p>
</w:body>
</w:wordDocument>
</xsl:template>
</xsl:stylesheet>
Good luck.
-Lou
"Mohamed, Amgad" <Am...@ams-europe.com>
02/16/2006 10:07 AM Please respond to
fop-users@xmlgraphics.apache.org
To"fop-users@xmlgraphics.apache.org" <fo...@xmlgraphics.apache.org>
cc
Subjectconvert from XSL-FO to MSWORD
Dear All,
Is there is any way to convert from XSL-FO to MSWORD?
Best Regards,
Amgad Hanafy.
Re: convert from XSL-FO to MSWORD
Posted by Lo...@log-net.com.
Below is a VERY simple framework sample stylesheet to get you started. I
did not go this route due to the fact that WordML is not supported in
older versions of Word:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?mso-application progid="Word.Document"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<w:wordDocument>
<w:body>
<w:p>
<w:r>
<w:t>This is a very simple paragraph that will be
rendered OK in Word on an XP machine. Add stuff here and enjoy.</w:t>
</w:r>
</w:p>
</w:body>
</w:wordDocument>
</xsl:template>
</xsl:stylesheet>
Good luck.
-Lou
"Mohamed, Amgad" <Am...@ams-europe.com>
02/16/2006 10:07 AM
Please respond to
fop-users@xmlgraphics.apache.org
To
"fop-users@xmlgraphics.apache.org" <fo...@xmlgraphics.apache.org>
cc
Subject
convert from XSL-FO to MSWORD
Dear All,
Is there is any way to convert from XSL-FO to MSWORD?
Best Regards,
Amgad Hanafy.