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

Weird slugificiation errors #890

Open
1 task done
cabo opened this issue Sep 12, 2022 · 1 comment
Open
1 task done

Weird slugificiation errors #890

cabo opened this issue Sep 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@cabo
Copy link
Contributor

cabo commented Sep 12, 2022

Describe the issue

In a PR to jsonpath-base, we get weird errors about one of the unnumbered section names.

draft-ietf-jsonpath-base.xml(493): Error: Invalid attribute slugifiedName for element name, at /rfc/middle/section[3]/section[3]/name
/Volumes/nar/Users/cabo-rescue/Documents/ietf/jsonpath-wg/internet-draft/draft-ietf-jsonpath-base.xml(16): Warning: Invalid document after running preptool.
(No source line available): Warning: Duplicate id="name-semantics" found in generated HTML.

Despite the "Error", the HTML (or TXT) is still built.
https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/runs/8310507138?check_suite_focus=true

There is nothing special about this fifth subsection named semantics that we can find; it seems to work for the others.
draft-ietf-jsonpath-base-weird.xml.txt
draft-ietf-jsonpath-base-weird.html.txt

Code of Conduct

@jrlevine
Copy link

I think the problem is that the preptool invents IDs for sections of the form "name-foo" where foo is the section name so if you have a section called foo and an id name-foo, that will collide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants