How do I use a custom xml entity in a javascript file
Posted
by tmim
on Stack Overflow
See other posts from Stack Overflow
or by tmim
Published on 2010-03-10T05:44:41Z
Indexed on
2010/04/01
12:33 UTC
Read the original article
Hit count: 262
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;"
© Stack Overflow or respective owner