Closed pfeige closed 2 years ago
This is not currently possible because it would require the printer callbacks to be aware of the module of their node, which they are not. The advantage of the current approach is also that a value is always printed the same way (assuming the prefixes of the same modules are the same) so you have something akin to a canonical value and that it differentiates an identity from other kinds of values such as enum. So I am not sure it is worth changing it.
This is not really a problem for me. I only wanted to get some tests passed which issue an edit-config and then check the response of the get-config. Now I will modify the expected response accordingly. Thanks!
Hi,
it seems that identityref values always have explicit namespaces with prefix when printed in printer_xml.c. Please consider the following schema modules:
When the following XML snippet is imported with sysrepocfg
and then exported again it looks like this
Would it be feasible to omit these unnecessary prefixes and namespaces?
BR, Peter