← Prev in month ← Prev in thread

docbook to wordml problems

From
Antti Karanta <>
Date
2008-01-03T15:02:58+00:00
ID
Thread
docbook to wordml problems
Hi!

   I tested the docbook -> wordml xsl stylesheets in the docbook  
stylesheets distribution and they produced wordml that does not validate  
against the wordml schema.

   I transformed the docbook document telling what docbook elements are  
supported in the wordml transformation to wordml.
   Here's details of what I did:

C:\downloaded\docbook>C:\programs\Java\jdk1.6.0_03\bin\java -Xss1m -cp  
C:\programs\Java\saxon655\saxon.jar;C:\work\napa\jnapa\commons\lib\batik\xercesImpl.jar;C:\downloaded\docbook\docbook-xsl-1.73.2\extensions\saxon65.jar  
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl  
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl  
com.icl.saxon.StyleSheet -o \temp\supported.doc  
docbook-xsl-1.73.2\roundtrip\supported_test.xml   
\downloaded\docbook\docbook-xsl-1.73.2\roundtrip\docbook.xsl  
wordml.template=file:///c:/downloaded/docbook/docbook-xsl-1.73.2/roundtrip/template.xml
Recoverable error
Ambiguous rule match for /article[1]/articleinfo[1]/author[1]
Matches both "author|editor|othercredit" on line 267 of  
file:/C:/downloaded/docbook/docbook-xsl-1.73.2/roundtrip/docbook
.xsl
and "*[contains(name(),  
"info")]/*[not(self::title|self::subtitle|self::titleabbrev)]" on line 265  
of file:/C:/downloade
d/docbook/docbook-xsl-1.73.2/roundtrip/docbook.xsl
Recoverable error
Ambiguous rule match for /article[1]/articleinfo[1]/releaseinfo[1]
Matches both "releaseinfo" on line 391 of  
file:/C:/downloaded/docbook/docbook-xsl-1.73.2/roundtrip/docbook.xsl
and "*[contains(name(),  
"info")]/*[not(self::title|self::subtitle|self::titleabbrev)]" on line 265  
of file:/C:/downloade
d/docbook/docbook-xsl-1.73.2/roundtrip/docbook.xsl
revhistory encountered in articleinfo, but no template matches.
sgmltag encountered in para, but no template matches.
literal encountered in para, but no template matches.
< ... pageloads of these same warnings (?) cut off ...>

   Word opens the generated wordml file as text. This was easily remedied  
by inserting the missing
<?xml version="1.0" encoding="UTF-8"?>
   in the beginning of the file.
   BTW, why is this missing? Can I set some option to get this snippet  
generated?

   It does not help a lot, though, now word complains:
"
The XML file supported.doc cannot be opened because there are problems  
with the contents.
Details:
Unspecified error
Error location: Line 3, Column 69343
"

   Word version 2003 (11.5604.5606)


   Also, the generated word document does not validate against the wordml  
schema (which I downloaded from  
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca83cb4f-8dee-41a3-9c25-dd889aea781c&displaylang=en  
).


   Am I doing something wrong or is this a bug? Any known workarounds?



         -Antti-
← Prev in month ← Prev in thread