Skip to content

renderTheme.xsd is not deterministic #1461

Closed

Description

@tumic0

The render theme XSD is not deterministic and can thus not be used for style XML validation:

[tumic@tumic mapsforge]$ xmllint --schema ~/Downloads/renderTheme.xsd default.xml > /dev/null
/home/tumic/Downloads/renderTheme.xsd:337: element complexType: Schemas parser error : complex type 'rendertheme': The content model is not determinist.
WXS schema /home/tumic/Downloads/renderTheme.xsd failed to compile

Activity

  1. devemux86 commented on Jan 24, 2024

    @devemux86
    Collaborator

    We have not seen any problem validating the render themes with supported editors or IDEA.

    If you see something that could be improved, please post it so we can review it.

  2. tumic0 commented on Jan 24, 2024

    @tumic0
    ContributorAuthor

    ?! xmllint is quiet the "industry standard" in validating XML files and it fails on the render theme XSD as shown in the original post. Some basic info about Deterministic and Non-Deterministic Schemas can be found in the MSXML documentation and according to it MSXML will also fail in validating the Mapsforge render theme (not tested).

    The specific problem in the scheme is how the hillshading/rule elements and their structure are defined - see the original post for the XSD error message. To fix it you have to change the rules for the elements for example to hillshading only appear after rule elements.

  3. added this to the 0.21.0 milestone on Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions