Guides / Why your define.xml shows a blank page or raw XML in Chrome
Why your define.xml shows a blank page or raw XML in Chrome
If your define.xml used to open as a neat web page and now shows a blank page, raw XML or an error, the stylesheet that draws it isn't running. Here's why, and how to read it again.
How a define.xml turns into a web page
A define.xml is data, not a web page. At the top it names a stylesheet, for example define2-1.xsl. When you open the file, the browser runs that stylesheet (a language called XSLT) to turn the XML into tables and links. If the stylesheet doesn't run, you see raw XML, a blank page, or an error.
Why the define.xml stylesheet stops working
- Chrome's plan to remove XSLT. Google has published a plan to remove XSLT from Chrome, with stable Chrome 158 named as the release where it goes. Check Chrome's own release notes for the version you have.
- Opening the file from your disk. Even before that, Chrome blocks a file opened from your disk (a
file://address) from loading its stylesheet from the same folder, so many people saw a blank page already. - The .xsl file is missing. The stylesheet has to sit next to define.xml with exactly the name the file gives.
Four ways to read your define.xml again
| Option | Good for | Keep in mind |
|---|---|---|
| Open it in our checker | Reading, following links, finding broken references, saving an offline copy | Runs in Chrome or Firefox; the file stays on your computer |
| Firefox | Opening the file with its stylesheet | The .xsl has to be in the same folder |
| Save it as HTML | Sending a readable copy to someone | Our checker's "Save as a web page" writes one HTML file with no scripts |
| Run the stylesheet yourself | Teams with SAS or other XSLT tools | Needs software installed |
What this means for reviewers and your team
Whoever opens your define.xml may see the same blank page. A define.xml that reads well without a stylesheet (clear labels, working links, no broken references) is easier to review whatever tool opens it. Our viewer lists every reference that leads nowhere, so you can fix those before you send it.
Questions about define.xml in Chrome
Is my define.xml broken if Chrome shows it blank?
Usually not. The XML is still there; only the stylesheet that draws it as a page isn't running. Open it in a viewer that reads the XML directly.
Does Firefox still show define.xml with its stylesheet?
At the time of writing Firefox still runs XSLT. Check Firefox's release notes, as browsers change.
Do I need to change my define.xml for this?
No change is needed for the browser issue. It's still worth checking that the file has no broken references, which our viewer lists.
This guide is general information to help you understand the standards. It isn't official FDA or CDISC guidance; read the published documents for your submission.