[rfc-i] Bug in the online XML2RFC HTML output

julian.reschke at greenbytes.de (Julian Reschke) Tue, 24 May 2016 15:33 UTC

From: julian.reschke at greenbytes.de (Julian Reschke)
Date: Tue, 24 May 2016 17:33:33 +0200
Subject: [rfc-i] Bug in the online XML2RFC HTML output
In-Reply-To: <87iny4j005.fsf@hobgoblin.ariadne.com>
References: <87iny4j005.fsf@hobgoblin.ariadne.com>
Message-ID: <1f3da43a-5eb6-af76-f8a3-bb929f19316c@greenbytes.de>

On 2016-05-23 16:56, Dale R. Worley wrote:
> (Please CC me on any discussion, as I am not on rfc-interest.)
>
> I have an XML2RFC XML file which produces incorrect HTML using the
> online XML2RFC tool.
>
> To reproduce it:
>
> 1. Create an empty directory.
> 2. In that directory, obtain these files from a Subversion repository:
> 	$ svn co -r 5437 http://svn.resiprocate.org/rep/ietf-drafts/worley
> 3. Put worley/draft-worley-alert-info-fsm-02.xml through
>    http://xml2rfc.tools.ietf.org/ to generate
>    draft-worley-alert-info-fsm-02.{txt,html} (replacing the files that
>    you have checked out)
>
> Examine section 2 of draft-worley-alert-info-fsm-02.txt:  It shows text
> properly interspersed with a sequence of figures.
> Examine section 2 of draft-worley-alert-info-fsm-02.html:  The text is
> not properly interspersed with the figures.
>
> Thanks for looking into this,

That's a bug in xml2rfc.

It probably doesn't handle <figure> inside <t> correctly. If you need to 
get un-stuck, I'd move them out, making them siblings of <t> (== child 
elements of <section>).

Best regards, Julian