Thanks for the reply Ivan .
I just want to confirm my understanding derived from your reply.
ref and tyep attribute both serves the same purpose but due to the limitations mentioned by you it's preferable to use type attribute. Is is possible for you to give some example where we can use only one of them? Hope I am not troubling you much
