mercedes-benz/odxtools

Hardcoded DOCTYPE="CONTAINER" in PARENT-REF tags

Closed this issue · 0 comments

The DOCTYPE="CONTAINER" being hardcoded as an attribute of the PARENT-REF tag in the jinja template seems to cause issues with my use case, where I have PARENT-REFs that point to PROTOCOLs.

With this generated XML:
image

image

The inclusion of these two attributes leads to Vector ODXStudio determining that it is a broken link, even if the ID-REF is correct, because I don't believe a PROTOCOL is technically a CONTAINER?

If I eliminate the hardcoded DOCTYPE attribute, I no longer have broken links to the PROTOCOLs.

DOCREF="{{par.layer.short_name}}"
DOCTYPE="CONTAINER"