Token within Token?

Topics: User Forum
Apr 23, 2013 at 12:04 PM
Edited Apr 23, 2013 at 12:45 PM

Just wondering if this is supported - it seems not from my experiments. eg, suppose I've defined:
token Host=localhost
token Port=10000
token Server=<token>Host</token>:<token>Port</token>
When I reference the Server token, I just get "Server" - no substitution takes place. Even if I specify ddue:token, it still doesn't resolve the token.
Apr 23, 2013 at 7:21 PM
In theory, it should be supported as the SharedContentComponent is used to handle token replacement. It's the same one used for shared content (resource) items which can be replaced recursively. I'll have to check it out and see why it isn't working for tokens.

May 10, 2013 at 7:31 PM
I finally got around to checking this and nested tokens are working as expected. Typically, if a token is not found, you'll get no output at all, not just the token name. You didn't say whether this was in a MAML topic or in XML comments. If in XML comments, you do need to add the API Token Resolution build component to the project in order for the tokens to get replaced.