Crashing? You should probably file a bug for that at http://bugzilla.mozilla.org under XSLT, with keyword "crash", and also any Talkback ID you get from Mozilla Talkback (\bin\components\talkback.exe).
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary https://alexvincent.us/blog
I have sent it in to BugZilla. I was contacted and told that it would be fixed by the next release, which was supposed to be 1.2. I'm still having problems though.
JKD, thanks. I was unaware of that. The reason I ask is that I use QuickBooks at work. QuickBooks can export to Excel, which can save as XML. I've been using JavaScript to parse time and date data from the generated XML file, but I was hoping to use XSL instead, because CSS seems to work better on an XSLT page that with data imported into an HTML page for some reason.
Other JavaScript seems to work fine, including sending information to a SPAN tag using innerHTML... just no document.write();
If you should use inside an XSL file a script with document.write() and you cannot edit it(some counter for example), the next trick can help:
Code:
<script type="text/javascript">
// this is your script somewhere in HEAD
var document_write = '';
var obj = null;
document.write = function(str) {
document_write += str;
}
function begin(id) {
obj = document.getElementById(id);
}
function end() {
if(obj) {
obj.innerHTML = document_write;
}
document_write = '';
}
</script>
<!-- somewhere in BODY where you plan use another's script -->
<div id="some_id">
<script type="text/javascript">begin('some_id');</script>
<script type="text/javascript" src="http://www.other-domain.com/some_script_with_document_write.js"></script>
<script type="text/javascript">end();</script>
</div>