Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date format "11 August 2012" not handled #100

Open
drmacro opened this issue Dec 24, 2022 · 3 comments
Open

Date format "11 August 2012" not handled #100

drmacro opened this issue Dec 24, 2022 · 3 comments

Comments

@drmacro
Copy link

drmacro commented Dec 24, 2022

Processing the OT's user guide as delivered with the 4.0.1 the transform fails with the message shown below (the topic involved is docsrc/topics/prerequisite-software.dita)

     [xslt] Loading stylesheet /Users/ekimber/dita-ot/dita-ot-3.7.2/plugins/com.elovirta.ooxml/docx/word/comments.xsl
     [xslt] /Users/ekimber/dita-ot/dita-ot-3.7.2/plugins/com.elovirta.ooxml/docx/word/document.utils.xsl:47:22: Fatal Error! Invalid dateTime value "11 August 2012" (Non-numeric year component)
     [xslt] Failed to process /var/folders/zx/f9hzx16d5qv3p39bp1b62p480000gn/T/temp20221224091645105/userguide_CLEANED.xml
Error: Fatal error during transformation using /Users/ekimber/dita-ot/dita-ot-3.7.2/plugins/com.elovirta.ooxml/docx/word/comments.xsl: Invalid dateTime value "11 August 2012" (Non-numeric year component); SystemID: file:/Users/ekimber/dita-ot/dita-ot-3.7.2/plugins/com.elovirta.ooxml/docx/word/document.utils.xsl; Line#: 47; Column#: 22
@drmacro
Copy link
Author

drmacro commented Dec 24, 2022

Also fails on "August 11, 2012"

@drmacro
Copy link
Author

drmacro commented Dec 24, 2022

And this: "2016-04-03 18:30"

@raducoravu
Copy link

Similar to #43
@drmacro there is no date specified in the original "prerequisite-software.dita" topic.
According to DITA specs both revised and created dates in a DITA topic must have the format "YYYY-MM-DD"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants