Bugs item #3297553, was opened at 2011-05-04 08:12
Message generated for change (Comment added) made by bobstayton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3297553&group_id=21935
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XSL
Group: output: Roundtrip
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Josef Wolf (joewolf)
>Assigned to: Robert Stayton (bobstayton)
Summary: Word 2003 can not load generated WordML document
Initial Comment:
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
$
----------------------------------------------------------------------
>Comment By: Robert Stayton (bobstayton)
Date: 2012-10-26 13:38
Message:
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.
----------------------------------------------------------------------
Comment By: Mauritz Jeanson (mzjn)
Date: 2012-10-25 10:13
Message:
Josef Wolf: any news on this one?
----------------------------------------------------------------------
Comment By: Mauritz Jeanson (mzjn)
Date: 2011-08-28 04:15
Message:
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.
----------------------------------------------------------------------
Comment By: Josef Wolf (joewolf)
Date: 2011-05-06 03:05
Message:
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).
----------------------------------------------------------------------
Comment By: Mauritz Jeanson (mzjn)
Date: 2011-05-05 10:42
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3297553&group_id=21935
|