Hello,

I am trying to create a WordML file from asciidoc. For that, I have created
a WordML template as described in
http://www.fanhow.com/knowhow:Create_a_WordML_File_in_Word_33066619

Then I run those commands:

MYSTYLESHEETS=/usr/share/xml/docbook/stylesheet/nwalsh/1.75.2

asciidoc --doctype=article -b docbook myfile.txt
xmllint --nonet --noout --valid myfile.xml
xsltproc --stringparam wordml.template `pwd`/wordml.template \
   -o wordfile.xml \
   $(MYSTYLESHEETS)/roundtrip/dbk2wordml.xsl \
   myfile.xml

But when I try to load the resulting file with Word, I get an error dialog
that says the file can not be read. It says there is an error in line 5
column 19. This is right behind the first w:r tag that comes after the
o:Author tag. I also tried with the template from
http://www.zveno.com/open_source/template.xml but this gives me the same
error message.

Here is the head of the resulting file (reformatted for readability).

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument
   xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml";
   xmlns:v="urn:schemas-microsoft-com:vml"
   xmlns:w10="urn:schemas-microsoft-com:office:word"
   xmlns:aml="http://schemas.microsoft.com/aml/2001/core";
   xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint";
   xmlns:o="urn:schemas-microsoft-com:office:office"
   xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
   xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core";
   w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no"
   xml:space="preserve">
  <o:DocumentProperties>
    <o:Author>
      <w:r>
        <!-- This is the position of the error  -->
        <w:rPr><w:rStyle w:val="firstname"/></w:rPr>
        <w:t>Josef</w:t>
      </w:r>
      <w:r><w:t> </w:t></w:r>
      <w:r>
        <w:rPr><w:rStyle w:val="surname"/></w:rPr>
        <w:t>Wolf</w:t>
      </w:r>
    </o:Author>

Any ideas what I am doing wrong here?

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to