Open ietf-svn-bot opened 6 years ago
@julian.reschke@gmx.de commented
I agree that the formatter should handle that better.
In my formatter, it seems to work right, see file:///C:/projects/xml2rfc/v3test.html#n-referring-to-list-items.
@julian.reschke@gmx.de uploaded file xref-tests.xml
(23.6 KiB)
test case
@julian.reschke@gmx.de uploaded file xref-tests.txt
(14.9 KiB)
TXT produced by xml2rfc
@julian.reschke@gmx.de uploaded file xref-tests.html
(44.7 KiB)
sample HTML output from rfc2629.xslt
@rjsparks@nostrum.com _changed status from new
to under_review
_
@rjsparks@nostrum.com commented
This is OBE for v2, but there may still be an analogous enhancement to be made in v3.
Missing attachments: (added .txt
to overcome GitHub rules).
xref-tests.txt
xref-tests.html.txt
xref-tests.xml.txt
@reschke, @rjsparks: Is this still a valid issue? If so what are the enhancements required?
The original issue description is hard to read; maybe some formatting was lost?
I edited the original description to put the content in blockquotes.
If you suspect you see something broken try to edit it. if it won't let you edit it, try to quote reply
and you should see the pre-markdown bits.
We solved a related problem in https://www.ietf.org/archive/id/draft-ietf-core-href-10.html#c-scheme -- see how the items are defined in Section 2 and referenced in Section 3.
See https://github.com/core-wg/href/blob/main/draft-ietf-core-href.md#constraints-constraints (setup) and https://github.com/core-wg/href/blob/main/draft-ietf-core-href.md#creation-and-normalization (reference) for the source. https://www.ietf.org/archive/id/draft-ietf-core-href-10.xml if you prefer XML.
Well, this does not work too well with definition lists:
{:#ant} ant (en):
: Ameise (de)
{:#bat} bat (en):
: Fledermaus (de), afraid of {{<<cat1}}
{:#cat1} cat (en):
: Katze (de), does not eat {{<<ant}}
<dl>
<dt anchor="ant">ant (en):</dt>
<dd>
<t>Ameise (de)</t>
</dd>
<dt anchor="bat">bat (en):</dt>
<dd>
<t>Fledermaus (de), afraid of <xref format="title" target="cat1"/></t>
</dd>
<dt anchor="cat1">cat (en):</dt>
<dd>
<t>Katze (de), does not eat <xref format="title" target="ant"/></t>
</dd>
</dl>
➔
ant (en): Ameise (de)
bat (en): Fledermaus (de), afraid of cat1
cat (en): Katze (de), does not eat ant
So it uses the anchor as the title (!).
Indeed.
See rfcxml.xslt's output at
https://greenbytes.de/tech/webdav/xref-tests-rfc7991.html#rfc.section.2.7.2
and xml2rfc's
file:///C:/projects/xml2rfc/xref-tests-rfc7991.xml2rfcv3.html#section-2.7.2
for format=title, rfcxml.xslt takes the text content instead of the anchor name.
type_enhancement
| by tte@cs.fau.deIssue migrated from trac:347 at 2022-02-05 12:44:30 +0000