[Webkit-unassigned] [Bug 10462] New: XMLHttpRequest does not respect xml-stylesheet
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Aug 17 10:54:54 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=10462
Summary: XMLHttpRequest does not respect xml-stylesheet
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh PowerPC
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: jake.devine at nitobi.com
The XML Document returned is original, untransformed, document at the location
specified by the URL.
It doesn't look like I can attach files to this bug, but I'll give you a quick
example:
xmldoc.xml:
--------------
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="xsldoc.xsl"?>
<page>
<paragraph>
<line>This is line one.</line>
<line>This is line two.</line>
</paragraph>
</page>
xsldoc.xsl:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" />
<xsl:template match="//page">
<xsl:for-each select="paragraph">
<p>
<xsl:apply-templates />
</p>
</xsl:template>
<xsl:template match="line">
<br>
<xsl:value-of select="."/>
</br>
</xsl:template>
</xsl:stylesheet>
-------
When I enter the url for xmldoc.xml into the browser, i get the result of the
transformation, however requesting it in an XMLHttpRequest just returns
xmldoc.xml as an xml document.
--
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