Closed
Bug 317953
Opened 20 years ago
Closed 20 years ago
XSLT value-of document('') hangs from net, but works from file system
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 205778
People
(Reporter: bkc, Unassigned)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
Loading a .xml file that references a .xsl file via stylesheet PI. If that .xml file is loaded from the file system, it works.
If that .xml file is loaded via http, Firefox hangs (also hangs FF 1.01 on Linux)
the .xsl file is using <xsl:for-each select="document('')//const:data" .. > to traverse elements contained in the .xsl file itself.
The const namespace has been properly defined.
Reproducible: Always
Steps to Reproduce:
1. Put attached .xml and .xsl file on web server
2. load from webserver
3. FF hangs
Actual Results:
FF Hangs
Expected Results:
Should display a list of relative filenames specified in the const namespace of the stylesheet. Works when loading the .xml file from the file system.
In case I am not able to attach documents to this bug after filing, here's the jist of the .xsl file. (it doesn't use anything from the .xml file that launches it). This isn't the entire file but shows the <const:javascript> declaration and the use of for-each document('')//const:javascript
<?xml version="1.0"?>
<xslout:stylesheet xmlns:xslout="http://www.w3.org/1999/XSL/Transform" xmlns:const="const.uri" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xslout:output encoding="utf-8" method="xml" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
<const:css id="number_pad_css">
<const:file>number_pad.css</const:file>
</const:css>
<const:javascript id="number_pad_javascript">
<const:file>webcore/dynamic_interface.js</const:file>
<const:file>webcore/dynamic_tools.js</const:file>
<const:file>webcore/eventbus.js</const:file>
<const:file>webcore/binder.js</const:file>
</const:javascript>
<xslout:template match="/">
<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
</head>
<body>
<xslout:for-each select="document('')//const:javascript/const:file"><xslout:variable name="file" select="."/>
<div><xslout:value-of select="$file"/></div>
</xslout:for-each>
</body>
</html>
</xslout:template>
| Reporter | ||
Comment 1•20 years ago
|
||
This is the .xsl file that causes the hang when loaded via http, but works when loaded from the filesystem.
| Reporter | ||
Comment 2•20 years ago
|
||
| Reporter | ||
Comment 3•20 years ago
|
||
This is what I expect transformix to produce. This is from libxslt run on the other two files.
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 205778 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•