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

XML2RFC is blowing up on the attached draft #412

Closed
ietf-svn-bot opened this issue Jul 27, 2019 · 5 comments
Closed

XML2RFC is blowing up on the attached draft #412

ietf-svn-bot opened this issue Jul 27, 2019 · 5 comments
Labels

Comments

@ietf-svn-bot
Copy link

owner:henrik@levkowetz.com resolution_fixed type_defect | by daveoran@orandom.net


i couldn't find anything useful in the traceback:

ORAN-M-51B7:Flowbalance Draft oran$ xml2rfc draft-oran-icnrg-flowbalance-00.xml
Parsing file draft-oran-icnrg-flowbalance-00.xml
Traceback (most recent call last):
File "/usr/local/bin/xml2rfc", line 11, in
load_entry_point('xml2rfc==2.5.2', 'console_scripts', 'xml2rfc')()
File "/usr/local/lib/python2.7/site-packages/xml2rfc/run.py", line 233, in main
pagedwriter.write(filename)
File "/usr/local/lib/python2.7/site-packages/xml2rfc/writers/base.py", line 1259, in write
self._build_index()
File "/usr/local/lib/python2.7/site-packages/xml2rfc/writers/base.py", line 1103, in _build_index
self._indexRef(ref_counter, title=title, anchor=ref.attrib["anchor"])
File "src/lxml/lxml.etree.pyx", line 2452, in lxml.etree._Attrib.getitem (src/lxml/lxml.etree.c:70080)
KeyError: 'anchor'


Issue migrated from trac:412 at 2022-02-05 12:49:03 +0000

@ietf-svn-bot
Copy link
Author

@daveoran@orandom.net uploaded file draft-oran-icnrg-flowbalance-00.xml (24.9 KiB)

xml input file to xml2rfc

@ietf-svn-bot
Copy link
Author

@julian.reschke@gmx.de commented


Diagnostics from rfc2629.xslt:


WARNING: missing anchor on reference:
                                An Improved Hop-by-hop Interest Shaper for Congestion Control in Named Data Networking, in ACM SIGCOMMx 2013
                                 (at line 245)
WARNING: missing text in address/phone (at line 59)

So the @anchor element is missing on the reference.

(rfc2629.xslt reports that as WARNING but it really is an ERROR).

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed status from new to closed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Fixed in 516811f:

Added an error for references without anchor (in v2; in v3 this will be caught by the schema validation step). Fixes issue #412.

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

No branches or pull requests

1 participant