This summary is not the rule. The rule text controls.
If a lawsuit involves the law of another country, and someone wants to bring that up, they have to tell the other side ahead of time. This notice has to be in writing, either in a pleading or some other document filed with the court. This gives everyone a fair chance to prepare, instead of being surprised by a foreign law argument partway through the case.
When the judge has to figure out what a foreign country's law actually says, the judge can look at almost anything that might help, including expert testimony, documents, or other sources. It doesn't matter if this information was submitted by one of the parties or if it would normally be allowed under the usual evidence rules. The judge has a lot of freedom here because foreign law can be hard to research and understand.
Finally, once the judge decides what the foreign law means, that decision counts as a ruling on a legal question, not a factual one. This matters because legal rulings are reviewed differently than factual findings if someone appeals the case later.