Skip to content

Commit

Permalink
fix: Use bib.ietf.org for I-D xinclude references
Browse files Browse the repository at this point in the history
Fixes #1008
  • Loading branch information
kesara committed Sep 20, 2024
1 parent 2a3f69d commit f63f309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml2rfc/writers/v2v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ def add_xinclude(self):
xi = self.element('{http://www.w3.org/2001/XInclude}include',
nsmap=self.xmlrfc.nsmap,
line=e.sourceline,
href="https://datatracker.ietf.org/doc/bibxml3/draft-%s.xml"%tag)
href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.draft-%s.xml"%tag)
else:
tag = re.sub(r'-\d\d$', '', tag)
xi = self.element('{http://www.w3.org/2001/XInclude}include',
nsmap=self.xmlrfc.nsmap,
line=e.sourceline,
href="https://datatracker.ietf.org/doc/bibxml3/draft-%s.xml"%tag)
href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.%s.xml"%tag)
xi.tail = e.tail
i = p.index(e)
p.remove(e)
Expand Down

0 comments on commit f63f309

Please sign in to comment.