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

Ability to expand/un-expand xi:includes #6

Open
ajeanmahoney opened this issue Dec 8, 2023 · 2 comments
Open

Ability to expand/un-expand xi:includes #6

ajeanmahoney opened this issue Dec 8, 2023 · 2 comments
Assignees

Comments

@ajeanmahoney
Copy link
Collaborator

For example, be able to expand the following:

<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9110.xml"/>

to

<reference anchor="RFC9110" target="https://www.rfc-editor.org/info/rfc9110">
  <front>
    <title>HTTP Semantics</title>
    <author fullname="R. Fielding" initials="R." role="editor" surname="Fielding"/>
    <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham"/>
    <author fullname="J. Reschke" initials="J." role="editor" surname="Reschke"/>
    <date month="June" year="2022"/>
    <abstract>
      <t>The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document describes the overall architecture of HTTP, establishes common terminology, and defines aspects of the protocol that are shared by all versions. In this definition are core protocol elements, extensibility mechanisms, and the "http" and "https" Uniform Resource Identifier (URI) schemes.</t>
      <t>This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.</t>
    </abstract>
  </front>
  <seriesInfo name="STD" value="97"/>
  <seriesInfo name="RFC" value="9110"/>
  <seriesInfo name="DOI" value="10.17487/RFC9110"/>
</reference>

And be able to reduce full reference entries to an xi includes.

@JayDaley
Copy link
Contributor

Should the reduce function check if any edits have been made in the local file that means it is now different to the contents of the remote file?

@ajeanmahoney
Copy link
Collaborator Author

If the expanded reference doesn't match the reference retrieved by the xi include, there should be a warning presented. This feature is supposed to be built into xml2rfc, but I'm not finding the issue that discusses it.

@NGPixel NGPixel self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants