RE: [xsl] WordML creating blank PDFs using Word2FO stylesheet

Subject: RE: [xsl] WordML creating blank PDFs using Word2FO stylesheet
From: "Paruchuri, Pardha" <Pardha.Paruchuri@xxxxxxxxxx>
Date: Tue, 14 Jun 2011 15:06:03 -0400
PDF files are created by FOP 0.95. FO files can also be created using
XALAN. Here are the command lines I am using for FO and PDF outputs.

1) fop -d -xml 2005651869151275492_copy4_change1.xml -xsl
stylesheets\word2fo.xsl -foout
2) fop -d -xml 2005651869151275492_copy4_change1.xml -xsl
stylesheets\word2fo.xsl -pdf 2005651869151275492_copy4_change1.pdf
3) java org.apache.xalan.xslt.Process -IN xmlfile -XSL file -OUT outfile

-----Original Message-----
From: Paruchuri, Pardha
Sent: Tuesday, June 14, 2011 2:27 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] WordML creating blank PDFs using Word2FO stylesheet

Thanks Wendell. Here is a simple test case.
Attached the input XML, XSL files zip and the output FO and PDF files.
the input XML was saved in Word 2007(also tried setting save format to
Word 2003 XML) and the body/content did not get processed by the XSL
thus creating a blank PDF. Please let me know if you need more info. The
input XML files are creating PDFs with the same content and layout fine
as long as not opened by the Word 2007.

-----Original Message-----
From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx]
Sent: Tuesday, June 14, 2011 11:37 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] WordML creating blank PDFs using Word2FO stylesheet

Dear Pardha,

On 6/10/2011 10:34 PM, Paruchuri, Pardha wrote:
> All,
> We are using Word2FO stylesheets to convert WordML into XSL-FO which
> will be submitted to FOP to convert into PDFs. It was working fine
> before with Word 2003. Somehow the Word 2007 WordML files though saved

> in Word 2003 XML and Word 2003 layout formats are coming out blank in
> PDF. Seems like the Word2FO.xsl is not able to recognize the w:body or

> the content in the WordML file. Could someone help me troubleshoot the

> issue or point me to the XSL tag that processes the body/content in
> WordML files. Thanks.

Probably not, or at least not without considerably more information.

Consider developing a miniature demonstration version of your problem:
inputs, outputs and stylesheet, all stripped down to their bare
essentials, demonstrating where it goes wrong. (See the list guidelines
at This
will help isolate and expose the issue so that someone new to the
problem (or maybe even yourself) can diagnose it.

If this isn't practical (if larger files, for example, need to be
exchanged) I'm afraid you may need to engage professional help. You may
be able to find it by letting us know: there are readers of the list who
might be willing to offer their services.

Or, of course, there are other options, particularly if Word2FO.xsl is
supposed to be a supported product.

Good luck,

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
   Mulberry Technologies: A Consultancy Specializing in SGML and XML

Current Thread