Fixed by a 'undefined' check.
  if(typeof(inlineXSL)!="undefined") {
    xmlString = inlineXSL[_1];
    xmlString = xmlString.replace(/DOUBLE_QUOTE/g,"\"");
    this.xslDom = (new DOMParser()).parseFromString(xmlString,
"text/xml");
  }
  else {
    this.xslDom.load(xslUrl);
  } 

Sorry, I was coding without my brain attached.

Matthew D. Diez

-----Original Message-----
From: Steven M. Ottens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 8:14 AM
To: '[email protected]'; Diez, Matthew
Subject: Util.js is broken

Hi all,

I noticed that as of r3048 the demos using XSL stylesheets break on line
44 in Util.js:
if(inlineXSL) {
    xmlString = inlineXSL[_1];
    xmlString = xmlString.replace(/DOUBLE_QUOTE/g,"\"");
    this.xslDom = (new DOMParser()).parseFromString(xmlString,
"text/xml");
  }
inlineXSL is not defined and as such firefox (at least) fails on it. A
simple check on inlineXSL solves it:
  if(!inlineXSL) var inlineXSL=false;
However I take it the inlineXSL routine is implemented for a reason and
I guess inlineXSL should be defined somewhere else. Can someone (matt?)
who is knowledgeable in these things have a look at it?

thanks
Steven



IEM CONFIDENTIAL INFORMATION PLEASE READ OUR NOTICE:
http://www.iem.com/e_mail_confidentiality_notice.html

Effective July 15, 2007 IEM Headquarters will have a new physical and mailing 
address:
8550 United Plaza Blvd, Suite 501
Baton Rouge, LA 70809
If you should have any questions, please feel free to contact us at 225.952.8191


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to