use contentLength parameter to determine length of updateCSL.xsl rather than hardcoding a limit

This commit is contained in:
Simon Kornblith 2010-07-06 18:43:15 +00:00
parent ca0328729a
commit 2e951139fe

View file

@ -401,7 +401,7 @@ function() {
let channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/updateCSL.xsl", "UTF-8", null));
let updateXSLT = Components.classes["@mozilla.org/xmlextras/domparser;1"]
.createInstance(Components.interfaces.nsIDOMParser)
.parseFromStream(channel.open(), "UTF-8", 32768, "application/xml");
.parseFromStream(channel.open(), "UTF-8", channel.contentLength, "application/xml");
// load XSLT file into XSLTProcessor
Zotero.Styles.xsltProcessor = Components.classes["@mozilla.org/document-transformer;1?type=xslt"]