#1289 element TotalTime: Schemas validity error

output: Roundtrip
open
nobody
XSL (1066)
5
2014-07-10
2013-01-17
No

Generated wordml does not validate.

After downloading: [Office 2003: XML Reference Schemas]
http://www.microsoft.com/en-us/download/details.aspx?id=101

I tried validating the generated wordml file, but it leads to:

$ xmllint --noout --schema wordnet.xsd demo.wordml.xml
demo.wordml.xml:8: element TotalTime: Schemas validity error : Element '{urn:schemas-microsoft-com:office:office}TotalTime': '' is not a valid value of the atomic type 'xs:nonNegativeInteger'.
demo.wordml.xml fails to validate

where:

/usr/bin/xsltproc --xinclude -o demo.wordml.xml --stringparam wordml.template /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/roundtrip/template.xml /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/roundtrip/dbk2wordml.xsl demo.xml

Discussion

  • Mathieu Malaterre

    demo xml

     
  • Mathieu Malaterre

    Input XML is proper docbook 5:

    $ jing /usr/share/xml/docbook/schema/rng/5.0/docbook.rng demo.xml
    $ echo $?
    0

     
  • Mathieu Malaterre

    TotalTime XSD validation

     
  • Mathieu Malaterre

    the patch totaltime.patch fixes symptoms.

     

Log in to post a comment.