Skip to content

XML Lexer: Support ENTITY, NOTION, Enumerations with NMTokens for DTD editor - #9700

Open
matthiasblaesing wants to merge 3 commits into
apache:masterfrom
matthiasblaesing:dtd
Open

matthiasblaesing wants to merge 3 commits into
apache:masterfrom
matthiasblaesing:dtd

Conversation

@matthiasblaesing

Copy link
Copy Markdown
Contributor

It was noticed that NetBeans is not able to properly display its own apichanges-1.1.dtd document:

grafik

Analysis showed, that the hand written lexer did not even cover the cases for ENTITY and NOTION declarations:

What is more the DTD contains enumerations containing literals with numbers. These were rejected by the lexer.

After adding the missing cases the document renders correctly:

grafik

It was noticed that NetBeans is not able to properly display its own
apichanges-1.1.dtd document. Analysis showed, that the hand written
lexer did not even cover the cases for ENTITY and NOTION declarations:

<!NOTATION simple PUBLIC "Public Simple">
<!ENTITY ProjectLogo PUBLIC "DEMO // PUBLIC" "https://netbeans.apache.org/_/images/apache-netbeans.svg">
<!ENTITY % ProjectName 'Apache NetBeans' >

What is more the DTD contains enumerations containing literals with
numbers. These were rejected by the lexer.
@matthiasblaesing matthiasblaesing added this to the NB32 milestone Oct 10, 2026
@matthiasblaesing matthiasblaesing added Code cleanup Label for cleanup done on the Netbeans IDE ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) XML labels Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Code cleanup Label for cleanup done on the Netbeans IDE XML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant