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

Support XML files with newer document type versions (but old structure) #26

Closed
gerking opened this issue Nov 2, 2024 · 1 comment
Closed

Comments

@gerking
Copy link
Contributor

gerking commented Nov 2, 2024

Latest versions of UPPAAL store XML files in version 1.6 of the corresponding document type definition. The grammar is currently restricted to version 1.1 and 1.2. This prevents newer files from being parsed, even though they use only language constructs that are themselves supported by the grammar.

The issue has already been reported for older versions of the project.

@gerking gerking closed this as completed in 588ad37 Nov 2, 2024
@gerking gerking reopened this Nov 5, 2024
@gerking
Copy link
Contributor Author

gerking commented Nov 5, 2024

The current solution causes problems when serializing models. The serializer does not “understand” which DTD version number to select and write to the XML file. This is a little unforeseen as the previous version of the grammar also contained two alternative DTD versions (but these were written out in full tokens, repeating the surrounding XML structure). In this case, the serializer worked as intended by selecting the first of the two alternatives (which was version 1.1).

@gerking gerking closed this as completed in 92382b0 Nov 5, 2024
gerking added a commit that referenced this issue Nov 5, 2024
Fix serialization of versions in document type definition (close #26)
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

1 participant