ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
64 stars 35 forks source link

xml2rfc 3.19.0 isn't parsing drafts references correctly #1071

Closed paulehoffman closed 6 months ago

paulehoffman commented 6 months ago

Describe the issue

An XML file has <xref target="I-D.rswg-rfc7990-updates"/> and in references:

<reference anchor="I-D.rswg-rfc7990-updates">
   <front>
      <title>Updated RFC Format Framework</title>
      <author fullname="Paul E. Hoffman" initials="P. E." surname="Hoffman">
         <organization>ICANN</organization>
      </author>
      <author fullname="Heather Flanagan" initials="H." surname="Flanagan">
         <organization>Spherical Cow Consulting</organization>
      </author>
      <date day="6" month="December" year="2023"/>
      <abstract>
     <t>   ... </t>
      </abstract>
   </front>
   <seriesInfo name="Internet-Draft" value="draft-rswg-rfc7990-updates-02"/>

(That was gotten from the standard directory by kramdown-rfc).

The output is:

xml2rfc draft-hoffman-rfc7995bis.xml --text
/Users/paul.hoffman/Documents/Drafts/7995bis/draft-hoffman-rfc7995bis.xml(64): Error: Expected <author> to have initials, surname and fullname or organization
/Users/paul.hoffman/Documents/Drafts/7995bis/draft-hoffman-rfc7995bis.xml(64): Warning: Removed a redundant asciiFullname= attribute from <contact>
/Users/paul.hoffman/Documents/Drafts/7995bis/draft-hoffman-rfc7995bis.xml(64): Error: Expected <author> to have initials, surname and fullname or organization
/Users/paul.hoffman/Documents/Drafts/7995bis/draft-hoffman-rfc7995bis.xml(64): Warning: Removed a redundant asciiFullname= attribute from <contact>
Not creating output file due to errors (see above)
Unable to complete processing draft-hoffman-rfc7995bis.xml

Code of Conduct

paulehoffman commented 6 months ago

xml2rfc gave a very weird error that was fixed by fixing a different warning.