wordinator
wordinator copied to clipboard
Misleading error message citing <fn> should cite <footer> (low priority)
An error message citing <fn>:
+ 2024-03-30 14:12:10,915 [WARN ] makeFootnote(): Unexpected element {urn:ns:wordinator:simplewpml}:page-number-ref' in <fn>. Ignored.
Has nothing to do with <fn> as there is no <fn> element in my SWPX document.
The schema tells me where my <page-number-ref> is misplaced:
/Users/admin/t/Realta/SD-2026-genericode/_swpx2/SD-2026-genericode.sts.swpx:1:547: error: element "wp:page-number-ref" not allowed here; expected the element end-tag or element "wp:object", "wp:p", "wp:table" or "wp:toc"
... and it happens to be in a footer, just not surrounded with a <p>:
<wp:footer type="odd">
<wp:p>
<wp:run> © ISO/IEC 2023 — All rights reserved. </wp:run>
</wp:p>
<wp:page-number-ref format="numberInDash"/>
</wp:footer>
But the issue I'm raising here is that the footer error appears to be complaining about a footnote.
This is low priority as I figured out what really is wrong with my code.