resource binding inherits doc from primary definition, if no doc is provided.