Skip to content

Misleading error message citing <fn> should cite <footer> (low priority) #139

Description

@gkholman

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions