#1175 Word 2003 can not load generated WordML document

output: Roundtrip
pending-fixed
XSL (1066)
5
2012-10-26
2011-05-04
Josef Wolf
No

I am trying to create a WordML file from a very simple docbook file. But when I try to load the resulting file with Word 2003, I get an error dialog
that says the file can not be read. It says there is an error in line 3963 column 13. This is at the very end of the resulting file.

I run those commands to create the file:
ROUNDTRIP=`pwd`/docbook-xsl-ns-1.76.1/roundtrip
xmllint --nonet --noout --valid myfile.xml
xsltproc -o wordfile.doc --stringparam wordml.template \ $ROUNDTRIP/template.xml \ $ROUNDTRIP/dbk2wordml.xsl \ myfile.xml

$ xsltproc --version
Using libxml 20707, libxslt 10124 and libexslt 813
xsltproc was compiled against libxml 20707, libxslt 10124 and libexslt 813
libxslt 10124 was compiled against libxml 20707
libexslt 813 was compiled against libxml 20707
$

Discussion

  • Josef Wolf

    Josef Wolf - 2011-05-04
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2011-05-05

    I got an "unspecified error" (line 1, Column 682) with your test file. After some trial and error, I found that removing the <o:Author> and <o:LastAuthor> elements made it possible to open the document in Word 2003. I don't know what the underlying problem is.

     
  • Josef Wolf

    Josef Wolf - 2011-05-06

    I tried to remove the <o:Author> and <o:LastAuthor> tags, but that did not help. It's only that the error is now at line 3961 (that is, moved two lines up).

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2011-08-28

    I don't think I can provide more help. If you want to draw attention to this issue, you might want to bring it up on the docbook-apps mailing list.

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2012-10-25

    Josef Wolf: any news on this one?

     
  • Robert Stayton

    Robert Stayton - 2012-10-26

    I just checked in a fix to dbk2wordml.xsl. The problem was that the stylesheet was inserting WordML markup in the o:Author element which should only have text. Now the stylesheet outputs text only for that element.

     
  • Robert Stayton

    Robert Stayton - 2012-10-26
    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
     

Log in to post a comment.