[Webkit-unassigned] [Bug 10419] XSLTProcessor transformToFragment always returns NULL

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Aug 15 14:57:16 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10419





------- Comment #2 from j_mckitrick at yahoo.com  2006-08-15 14:57 PDT -------
---------- file: xslt-frag.xml ----------
<?xml version="1.0" encoding="UTF-8"?>
<report-types>
  <report-type>Report 1</report-type>
  <report-type>Report 2</report-type>
  <report-type>Report 2</report-type>
</report-types>

---------- file: xslt-frag.xsl ----------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/report-types">
    <table>
      <tr>
        <th>Options</th>
      </tr>
      <tr>
        <xsl:for-each select="report-type">
          <td><xsl:value-of select="."/></td>
        </xsl:for-each>
      </tr>
    </table>
  </xsl:template>
</xsl:stylesheet>

---------- test case ----------
// JCM
var xml3 = getXMLDocument("xslt-frag.xml");
addXMLResult("xml source node", xml3);
var xsl3 = getXMLDocument("xslt-frag.xsl");
addXMLResult("xsl transform node", xsl3);

var p = new XSLTProcessor;
p.importStylesheet(xsl3);
var ownerDocument = document.implementation.createDocument("", "test", null);
var f = p.transformToFragment(xml3, ownerDocument);
alert(serializer.serializeToString(f));

//addResultExpectValueWhenSerialized("transformed fragment is table", f,
serializer.serializeToString);

// JCM


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list