Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate that modification of the "anchor" attribute does not affect xml2rfc behavior #177

Closed
ronaldtse opened this issue May 26, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@ronaldtse
Copy link
Contributor

The BibXML Service is now online and the API allows generation of custom anchors. The old anchors are provided in the legacy data set.

This task is to test Metanorma's generation of RFC XML that uses custom anchors.

@ronaldtse ronaldtse added the question Further information is requested label May 26, 2022
@ronaldtse
Copy link
Contributor Author

ronaldtse commented May 26, 2022

All that we need is to use Metanorma to generate an RFC XML, then manually change an anchor in definition and usage to an arbitrary value. And check that xml2rfc processes it properly.

@ronaldtse
Copy link
Contributor Author

It is likely that we cannot use the ENTITY style, because xml2rfc will auto-fetch from xml2rfc.tools.ietf.org, which contains the old hardcoded anchor.

The usage of ENTITY is why the anchor is tied and cannot be unbound. Therefore, we must not use ENTITY for this to work.
i.e. the MN generated RFC XML should not trigger reference auto-fetching by xml2rfc.

@opoudjis
Copy link
Contributor

It turns out that you have already disabled the anchors, by suppressing the generation of /bibitem/uri[@type = 'xml']. If there is no URI being supplied that points to the xml2rfc.tools.ietf.org repository, so that xi:include can retrieve the XML from it, then no xi:include is going to be generated to begin with. With updated xml2rfc, documents are being generated.

@opoudjis
Copy link
Contributor

Confirmed that removing rfc_anchor_cleanup() (which updated bibliographic anchor to supplied scope identifier) does not impact generating xml2rfc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants