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

No version="3" attribute when using --v3 #213

Open
wiktor-k opened this issue Oct 10, 2023 · 2 comments
Open

No version="3" attribute when using --v3 #213

wiktor-k opened this issue Oct 10, 2023 · 2 comments

Comments

@wiktor-k
Copy link
Contributor

Hi,

I'd like to generate v3 rfc xml and I found that there's --v3 option but when I then process the resulting file with idnits it complains about the missing version attribute:

Inspecting file spec.xml                                                                                                
                                                                                                                        
Errors:                                                                                                                 
                                                                                                                        
   For xml checks, version 3 is required:

spec.xml(15): Expected <rfc ... version="3" ...>, found None

   Found 6 lines with control characters:

spec.xml(446): Found control character 0x09 in column 0
spec.xml(447): Found control character 0x09 in column 0
spec.xml(478): Found control character 0x09 in column 0
spec.xml(489): Found control character 0x09 in column 0
spec.xml(505): Found control character 0x09 in column 0
spec.xml(506): Found control character 0x09 in column 0

Is this something that can be easily adjusted?

Thanks for this great piece of software! 👋

@cabo
Copy link
Owner

cabo commented Oct 10, 2023 via email

@wiktor-k
Copy link
Contributor Author

You need to run the output of kramdown-rfc through xml2rfc --v2v3 to obtain a v3 RFCXML file. kramdown-rfc deliberately relies on xml2rfc to generate whatever today’s definition of v3 RFCXML is embodied in that code.

Ah, okay, I think I thought passing --v3 will just emit v3 xml:

$ kramdown-rfc --help
Usage: kramdown-rfc2629 [options] [file.md] > file.xml
Version: 1.7.1
    -V, --version                    Show version and exit
    -H, --help                       Show option summary and exit
    -v, --[no-]verbose               Run verbosely
    -3, --[no-]v3                    Use RFCXML v3 processing rules
    -2, --[no-]v2                    Use RFCXML v2 processing rules

Is that intended to be used in conjunction with xml2rfc --v2v3 or just an experimental option? (I'm not sure what does it exactly do)

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

No branches or pull requests

2 participants