<!DOCTYPE HTML><html><!--https://bugzilla.mozilla.org/show_bug.cgi?id=551654--><head><title>Test for Bug 551654</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/></head><body><atarget="_blank"href="https://bugzilla.mozilla.org/show_bug.cgi?id=551654">Mozilla Bug 551654</a><pid="display"></p><divid="content"style="display: none"></div><preid="test"><scripttype="application/javascript">/** Test for Bug 551654 **/vardidTransform=false;varprocessor=newXSLTProcessor();varstyle='<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" '+'xmlns:exsl="http://exslt.org/common" '+'version="1.0">'+'<xsl:output method="html"/>'+'<xsl:template match="/">'+'<xsl:copy-of select="exsl:node-set(42)"/>'+'</xsl:template>'+'</xsl:stylesheet>';varstyleDoc=newDOMParser().parseFromString(style,"text/xml");vardata='<root/>';varoriginalDoc=newDOMParser().parseFromString(data,"text/xml");processor.importStylesheet(styleDoc);varfragment=processor.transformToFragment(originalDoc,document);is(fragment.firstChild.nodeType,Node.TEXT_NODE,"Result of transform should be a textnode");is(fragment.firstChild.nodeValue,"42","Result of transform should be a textnode with value '42'");</script></pre></body></html>