Pampam wrote:
I have a problem with convert document fragment to string in mozilla
var xsltProcessor = new XSLTProcessor();
xsltProcessor.importStylesheet(xslDocument);
var myFragment = xsltProcessor.transformToFragment(xmlDocument, document);
A fragment is a node, why do you need a string and how do you expect the
string to look, do you want the text content in the fragment node, do
you want to serialize the markup?
If you are converting some IE/MSXML code to Mozilla and are used to
htmlElement.innerHTML = xmlDocument.transformNode(xslDocument)
with IE then for Mozilla you need to learn to use DOM methods e.g.
while (htmlElement.hasChildNodes()) {
htmlElement.removeChild(htmlElement.lastChild);
}
htmlElement.appendChild(myFragment);
--
Martin Honnen
http://JavaScript.FAQTs.com/