I would like to see some sources to back up your claim on how taxation works.
"International Tax Law" is a subject you can study:
It deals with "taxation in cross border situations". There are no universal laws regarding taxes. What governing body would oversee that? The UN? The best (but not the only thing) you can get are DTAs, and Ireland is one of few, if not the only EU country to have a DTA with USA. That is one of the reasons so many US companies have their EU businesses setup in Ireland.
Most countries actually insists on territorial tax, that is: profits are taxed in the country where profits are made.
Again, read the article about "Double Irish":
en.wikipedia.org
It is profits that are taxed not revenue. From the article about double Irish: "The US was one of a small number of countries that did not use a "territorial" tax system, and taxed corporations on all profits, no matter whether the profit was made outside the US or not, in contrast to "territorial" tax systems which tax only profits made within that country."
Observe the US anomaly of non-territorial tax, and that PROFITS are taxed, not revenue.