How do I use a custom xml entity in a javascript file
- by tmim
I have an 'overlay.dtd' file with a line like <!ENTITY myentity "myvalue">.
At the top of my xul file I have <!DOCTYPE overlay SYSTEM 'chrome://myaddon/locale/overlay.dtd'>.
In my xul file, I have <script src='myscript.js'>.
I want to know if there is any way to access 'myentity' from the script.
alert("&myentity;") just alerts "&myentity;"