Re: xul generation with xslt
Emmanouil Batsis <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
[email protected] wrote: > var xmlLoad = new DOMParser().parseFromString("<?xml > version=\"1.0\"?>", "text/xml"); Hmmm. Not sure, but you may want to add a root node. > var result = xslt.transformToDocument(xmlLoad); > alert(result.documentElement.innerHTML); // result...innerHTML is > undefined > > The problem is that result.documentElement.innerHTML doesn't seem to be > valid... it's undefined. Since the XSLT output method is XML your result is an XMLDocument. AFAIK, innerHTML only applies to HTMLDocument and HTMLElement. Try alert( (new XMLSerializer()).serializeToString(result) ); hth, Manos