Subject: [xml2rfc] #181: empty PI <?rfc ?> causes odd error message

From: "xml2rfc issue tracker" <[email-masked]>
Date: Wed, 12 Jun 2013 22:44:28 -0000

#181: empty PI <?rfc ?> causes odd error message

 The empty PI <?rfc ?> appears twice in the normative references and causes
 the following error message. (see attached files; after removing them, the
 file runs fine.) How about either:
 - a better error message, or
 - no error (v1 didn't give an error for this)

 {{{
 % xml2rfc draft-ietf-ospf-rfc3137bis-04.original.xml
 Parsing file draft-ietf-ospf-rfc3137bis-04.original.xml
 Traceback (most recent call last):
   File "/usr/local/bin/xml2rfc", line 208, in <module>
     main()
   File "/usr/local/bin/xml2rfc", line 193, in main
     pagedwriter.write(filename)
   File "/usr/local/lib64/python2.6/site-packages/xml2rfc/writers/base.py",
 line 1080, in write
     self._build_index()
   File "/usr/local/lib64/python2.6/site-packages/xml2rfc/writers/base.py",
 line 938, in _build_index
     title = ref.find("front/title").text
 AttributeError: 'NoneType' object has no attribute 'text'
 }}}

-- 
-----------------------------+----------------------------------
 Reporter:  [email-masked]  |      Owner:  [email-masked]
     Type:  enhancement      |     Status:  new
 Priority:  minor            |  Milestone:
Component:  Version 2 cli    |    Version:  2.4.x
 Keywords:                   |
-----------------------------+----------------------------------

Ticket URL: <http://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/181>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>