<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25839</bug_id>
          
          <creation_ts>2009-05-17 02:30:42 -0700</creation_ts>
          <short_desc>XSLT document() function does not work (via Javascript XSLTProcessor)</short_desc>
          <delta_ts>2009-05-17 11:51:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10313</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="bitsteller">nbnet</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121680</commentid>
    <comment_count>0</comment_count>
    <who name="bitsteller">nbnet</who>
    <bug_when>2009-05-17 02:30:42 -0700</bug_when>
    <thetext>When I run a XSLT Transformation with the JavaScript XSLT API in Webkit (XSLTProcessor.transformToDocument() function), the document() function in XSLT which should fetch another document, simply does nothing.

This is a testing file:
http://dl.getdropbox.com/u/771983/webkit-test/doc.html

It transforms &quot;doc.xml&quot; with the XSLT stylesheet &quot;ref.xsl&quot; (which tries to read some data from &quot;another-file.xml&quot; via document()).

In Firefox/Gecko, Opera and even IE it runs as it should.

---
By the way: When the Transformation process is started via &lt;?xml-stylesheet?&gt; Processing Instruction the document() function works with Webkit.

Testing file:
http://dl.getdropbox.com/u/771983/webkit-test/doc.xml

---

Tested with Midori/Webkit from https://launchpad.net/~webkit-team/+archive/ppa.
Also confirmed on Windows running Google Chrome and Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121697</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-05-17 11:51:29 -0700</bug_when>
    <thetext>This is pretty much the same as bug 10313 - since the underlying issue is identical, I think that there is no need to track this separately.

*** This bug has been marked as a duplicate of 10313 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>