You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
?! 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.
Activity
devemux86 commentedon Jan 24, 2024
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.
tumic0 commentedon Jan 24, 2024
?!
xmllintis 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/ruleelements 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 tohillshadingonly appear afterruleelements.