Subject: [xsl] Firefox/mozilla XSL and having result styled by CSS From: Robert Koberg <rob@xxxxxxxxxx> Date: Fri, 17 Mar 2006 10:42:46 -0500 |
thanks for any help, -Rob
var targetFill = xslProc.transformToDocument(xmlDoc, document); // This next line does not produce the DocType //var targetFill = xslProc.transformToFragment(xmlDoc, document);
//The next line below does set the URL, if not present the //targetFill.URL is undefined //targetFill.URL = location.href;
var serializer = new XMLSerializer(); newPage = serializer.serializeToString(targetFill); // This alert shows that the transform occurs successfully alert(newPage); // I can also get the source from the DOM Inspector tool
// 'target' is a frames document object target.open(); //This writes all the HTML to the page // can't figure out any way to write a full page to a frame target.write(newPage); target.close();
var serializer = new XMLSerializer(); // STRANGELY this and the alert below show that there is only a head // with one link/@rel='stylesheet' element alert(serializer.serializeToString(target.documentElement)); alert(target.documentElement.innerHTML);
//tried for the hell of it - does nothing to the HTML displayed //target.documentElement.innerHTML = target.documentElement.innerHTML;
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Re: How to strip partial , Michael Kay | Thread | Re: [xsl] Firefox/mozilla XSL and h, Robert Koberg |
Re: [xsl] Re: How to strip partial , David Carlisle | Date | RE: [xsl] 3 XSLT2 quickies, Michael Kay |
Month |