Would this be right to respond to all the reviewers queries simultaneously in single files along with their queries? I have prepared all answers to all the queries raised by reviewers in major revision. Would it be ok if I respond to both reviewers in single pdf file in following format:

Reviewer #1:
Query 1: Reviewer's first query.
Author response: This is my explanation.
Query 2: Reviewer's second query.
Author response: This is my explanation.

and so on....

Reviewer #2:
Query 1: Reviewer's first query.
Author response: This is my explanation.
Query 2: Reviewer's second query.
Author response: This is my explanation.

In this way both reviewers can see queries of each other. Is this right way of response to reviewers ?
As a reviewer I have no problem with all the responses in one document. In practice I will quickly scroll down to my comments, but I may glance at responses on comments I find interesting.