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
65 stars 38 forks source link

use rfc filename in text output when only svg is provided #617

Open ietf-svn-bot opened 3 years ago

ietf-svn-bot commented 3 years ago

type_defect | by arusso@amsl.com


In the text output of an RFC, when there is artwork type="svg" provided, and no corresponding artwork type="ascii-art" (i.e., artset is not used), the rfc@docName appears in the message in the text output. Seems it should be the RFC number.

Current output:

      (Artwork only available as svg: No external link available, see
      draft-carpenter-eligibility-expand-10.html for artwork.)

Desired output (perhaps "No external link available" is not necessary, and "for artwork" is redundant):

      (Artwork only available as SVG: see rfc8989.html)

Or provide a URL for ease of use:

      (Artwork only available as SVG: see 
      https://www.rfc-editor.org/rfc/rfc8989.html)

Files (see Figure 1): https://www.rfc-editor.org/v3test/test8989.txt https://www.rfc-editor.org/v3test/test8989.xml https://www.rfc-editor.org/v3test/test8989.html

[Note: The test file is a modification of RFC 8989; artwork was removed. RFC 8989 does contain the "ascii-art" equivalent and uses accordingly.]


Issue migrated from trac:617 at 2022-02-08 07:14:03 +0000

ietf-svn-bot commented 3 years ago

@rjsparks@nostrum.com changed status from new to accepted

ietf-svn-bot commented 2 years ago

@johnl@taugh.com commented


The filename comes from the docName attribute to which should be the name of the RFC but is misimplemented as the draft name.