[xml2rfc] <rfc obsoletes=...> handling in html output

EdwardB at actelis.com (Edward Beili) Fri, 28 July 2006 03:44 UTC

From: "EdwardB at actelis.com"
Date: Fri, 28 Jul 2006 03:44:05 +0000
Subject: [xml2rfc] <rfc obsoletes=...> handling in html output
Message-ID: <9C1CAB2B65E62D49A10E49DFCD68EF3E69523B@il-mail.actelis.net>
X-Date: Fri Jul 28 03:44:05 2006

Hi,

It looks like there's a slight problem in xml2rfc v1.31 handling of "obsoletes" and "updates" attributes in the <rfc> tag

1. there should be a blank in the .html version, right after "obsoletes:" or "updates:"
2. some inputs produce wrong link to (if approved) in the .html version

For example the following input:

<rfc category="std"
     ipr="full3978"
     obsoletes="3636, 2668"
     updates="3636, 2668, 1515"
     docName="draft-ietf-hubmib-rfc3636bis-04.txt">

Produces the following incorrect html output:

...
<tr><td class="header">Updates:<a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc1116.txt'>1116</a> (if</td><td class="header">June 26, 2006</td></tr> <tr><td class="header"><a href='ftp://ftp.isi.edu/in-notes/rfcapproved).txt'>approved)</a></td><td class="header">&nbsp;</td></tr> <tr><td class="header">Obsoletes:<a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a> (if</td><td class="header">&nbsp;</td></tr> <tr><td class="header"><a href='ftp://ftp.isi.edu/in-notes/rfcapproved).txt'>approved)</a></td><td class="header">&nbsp;</td></tr> ...

The correct output should be:

<tr><td class="header">Updates: <a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc1116.txt'>1116</a> (if</td><td class="header">June 26, 2006</td></tr> <tr><td class="header"><a href='ftp://ftp.isi.edu/in-notes/rfcapproved.txt'>approved)</a></td><td class="header">&nbsp;</td></tr> <tr><td class="header">Obsoletes: <a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a> (if</td><td class="header">&nbsp;</td></tr> <tr><td class="header"><a href='ftp://ftp.isi.edu/in-notes/rfcapproved.txt'>approved)</a></td><td class="header">&nbsp;</td></tr>

Or, considering that ftp://ftp.isi.edu/in-notes/rfcapproved.txt does not exist, and the link to it is not shown when there's only 1 argument, the correct output should probably be:

<tr><td class="header">Updates: <a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc1116.txt'>1116</a> (if</td><td class="header">June 26, 2006</td></tr> <tr><td class="header">approved)</td><td class="header">&nbsp;</td></tr> <tr><td class="header">Obsoletes: <a href='ftp://ftp.isi.edu/in-notes/rfc3636.txt'>3636</a>, <a href='ftp://ftp.isi.edu/in-notes/rfc2668.txt'>2668</a> (if</td><td class="header">&nbsp;</td></tr> <tr><td class="header">approved)</td><td class="header">&nbsp;</td></tr>

Regards,
-Edward