I am trying to add a Reference Macro in an xml file to reference a Mapping Label's value assigned with a $MAP_SRC$ macro but mps does not let me do that. However, using Reference Macro in a java class is perfectly fine. Is there a reason for this?
What I am trying to do is that I am generating unique names for some xml elements and I need to use these strings in another xml document. So I mapped these strings to a mapping label using $MAP_SRC$ and I tried to use them with a Property Macro trying to get an output node by using the genContext.get output <label> for (node). But when I try to build the sandbox, MPS gives an error stating "get output by input and label cannot be used here". Here is a screenshot:
Using a reference macro is not necessary actually, but as I said, I need to use the mapping label's value somehow and I don't know any other method than this. So if you have another idea please let me know.