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
v3 default attributes #162
Comments
Ideally after the |
I'm not sure I understand the process here. |
It’s necessary to run —2to3 even when kramdown-rfc2629 ia run with —v3? |
With --v3 (which is now default), kramdown-rfc generates mongrel XML that is converted to proper v3 by xml2rfc. Martin Thomson's pipeline does that for you, so you may not have noticed. |
Ah, I didn't see that -- yes, it is. Nevertheless, I'm not seeing these attributes in the XML produced by I've updated to latest xml2rfc, i-d-template, and kramdown-rfc2629. |
Hmm, I see them. We must be doing something different. Do you have a sample I could try? |
in httpwg/http-extensions, |
(happy to supply a file for the former via e-mail if you don't want to go to the trouble) |
No problem. Indeed, the redundant attributes are gone. Need to examine more closely. |
Seems to have happened between xml2rfc 3.11.1 and xml2rfc 3.12.1. |
Hmm. I tried downgrading to 3.9.1 -- the same version used by the RPC for my draft -- and it still happened. |
"it happened"? |
The fix might actually be in lxml or some such. |
the XML produced by kramdown + v2v3 didn't have those default attributes. |
The v2v3 output sure did for 3.11.1; I can't easily make a controlled experiment here. |
3.11.1 does not produce those attributes for me, when called from @martinthomson's template. |
The work happens In
So this might really be an lxml fix. |
I know very little about the xml2rfc codebase, but surely it can control what attributes appear on an element? |
This is really weird. I have instances up to 3.11.1 that have both numbered=true and toc=default. I'd guess this will have solved itself as soon as the RFC editor updates their tools. |
OK. I might write a little XSLT for diff purposes in the meantime... thanks. |
I think you could also ask the RFC-editor to delete the spurious redundant attributes. |
I did; they declined. |
Whoa. Is this documented somewhere (outside an AUTH48 exchange)? |
Don't think so. To be fair, I asked but said not to do it if it's a lot of trouble. I could be more insistent. |
Maybe they are doing this for some internal tool. -- mode: grep; default-directory: "~/std/rfc/authors/" -- The below was a bit shocking for me...
|
See also ietf-tools/xml2rfc#632 |
See also https://notes.ietf.org/tools-team-20220308#XML2RFC---Kesara |
@mnot You should be able to emulate previous behaviour to reduce diffs by using Note that this will not work with |
Thanks for finding the reason... Well, the workaround to go to -2 also turns off v3 processing. |
The RPC seems to be adding the following attributes:
section
-numbered="true" toc="default"
xref
-format="default"
Could these be added in v3 output (once again, to reduce diffs)?
The text was updated successfully, but these errors were encountered: