Closed cabo closed 6 days ago
It appears that this is done in element_back
in v2v3.py
@cabo, Do you have an example? Thanks.
Sure. https://www.ietf.org/archive/id/draft-ietf-cbor-edn-e-ref-00.xml has:
<back>
<references>
<name>References</name>
<references anchor="sec-normative-references">
<name>Normative References</name>
the inner section Normative References has an anchor (as provided by kramdown-rfc), the outer Reference does not.
Input to v2v3.py: draft-ietf-cbor-edn-e-ref.xml.txt
Maybe I should do the joining together into one section in kramdown-rfc already.
@cabo, Are you referring to the lack of an anchor
attribute in the <references>
tag just after the <back>
tag?
The anchor
is an optional attribute for <references>
. So, I think it's okay to skip adding an artificial anchor
.
For historical reasons, v2v3 converter encapsulates all <references>
into a single <references>
^1.
Well, the XML generated is valid; it just leads to text like the below:
There is no way to reference Section 6, so the text separately references Section 6.1 and 6.2.
If the v2v3 behavior to synthesize a top-level References section is here to stay, I could simply preempt that behavior in kramdown-rfc and apply an anchor there.
I don't know the reason why v2v3 encapsulates multiple <references>
into single <references>
.
But I would assume it would be an undesirable change now since the xml2rfc
v2v3 converter has behaved that way for many years, so better to preempt that behavior in kramdown-rfc
?
Done in https://github.com/cabo/kramdown-rfc/commit/98ff1bd
(I'm not going to make a new release now right before the I-D deadline, so this will be in 1.8.1 on July 9)
Thanks for the feedback!
Describe the issue
xml2rfc sometimes synthesizes a References section around the informative and normative References sections. This section does not receive an anchor, so it cannot be referenced in an <xref
Code of Conduct