You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some docx validators out there. If we found a way to run xml validation in typescript, we could check our output before emitting it. (Avoiding situations like #6357)
The text was updated successfully, but these errors were encountered:
The XML validation errors are mostly due to wrong ordering of XML tags (apparently both the .xsd and RELAXNG schemas demand a particular ordering for some tags).
See jgm/pandoc#9263 where I'm attempting to fix the ordering in the reference document, which now passes validation (there are more validation errors to fix in pandoc and quarto itself).
I don't know whether the ordering matters for any application, but probably best to fix them so the real errors can be seen.
E.g. the reference doc had an extra > after a tag (now fixed in the PR above), and at first glance the callout tables created by quarto are missing a tblGrid tag, and have a duplicate w:pPr tag (one added by pandoc itself, the other be Quarto's Lua filter with raw opendocumentxml), which is very likely the reason for the linked bug.
(Using the latter to validate is sufficient, but I find that the error messages from the former are easier to follow since it gives you line numbers in the XML instead of an xpath)
The latest pandoc master should now produce docx that passes validation (Quarto doesn't yet as discussed in the other linked issue)
There are some docx validators out there. If we found a way to run xml validation in typescript, we could check our output before emitting it. (Avoiding situations like #6357)
The text was updated successfully, but these errors were encountered: