I’m currently using the following line to get tags of datasets to the underlying tool:
#set tags = ','.join(str(t.value) for t in $dataset.tags)
This however this does not return the original tags, they get truncated (losing # and the name:), converted to lowercase and special characters are removed. Is there a better way to get access to tags in the tool xml?