How to access the leaf elements of list from top level container

from the top container i need to access the values of leafs . e.g
container A
{
container B
{
container C
{
tailf:cli-show-template "user:$(A/B/C/aa/name), password:$(A/B/C/aa/password)// here im not able to access the list attributes;

list aa{
key name;
leaf name{
type —
}
leaf password{
type ----
}
}
}
}
}
i want the cli behaviour to be like this.
localhost # A B C
//it should display all the usernames ad pasword

Perhaps you can describe your desired behaviour a bit more?
What is it exactly that you want to be different from the default, i.e. the below behaviour?

# show full-configuration A B C                        
A B C aa myuser
 password mypass
!
A B C aa myuser2
 password mypass2
!