Closed Bug 174372 Opened 22 years ago Closed 22 years ago

Regression on XSLT document() function with external document value

Categories

(Core :: XSLT, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 179231

People

(Reporter: mickael.guessant, Assigned: peterv)

Details

Attachments

(1 file, 6 obsolete files)

Steps :
- a simple XML document references an XSL
- the xsl defines a variable using an external document
- this variable value points to another document
-> In current build (20021014), trying to access the content of
the second external document does no longer work.

It did work in Mozilla 1.2a
Attached file First xml file (obsolete) —
Attached file second xml file (obsolete) —
Comment on attachment 102818 [details]
XSL file trying to access second xml file content

><?xml version="1.0"?>
>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>	<xsl:template match="/">
>	<html>
>		<body>
>		<xsl:variable name="file" select="document('http://bugzilla.mozilla.org/attachment.cgi?id=102816&action=view')/file"/>
>		file : <xsl:value-of select="$file"/>,
>	  value : <xsl:value-of select="document($file)"/> 
>	  </body>
>	</html>
>	</xsl:template>
></xsl:stylesheet>
Comment on attachment 102818 [details]
XSL file trying to access second xml file content

><?xml version="1.0"?>
>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>	<xsl:template match="/">
>	<html>
>		<body>
>		<xsl:variable name="file" select="document('http://bugzilla.mozilla.org/attachment.cgi?id=102816&amp;action=view')/file"/>
>		file : <xsl:value-of select="$file"/>,
>	  value : <xsl:value-of select="document($file)"/> 
>	  </body>
>	</html>
>	</xsl:template>
></xsl:stylesheet>
Comment on attachment 102816 [details]
First xml file

<?xml version="1.0" encoding="ISO-8859-1"?>
<file>http://bugzilla.mozilla.org/attachment.cgi?id=102817&amp;action=view</fil
e>
Attached file first xml file (second try) (obsolete) —
Attached file XSL file (second try) (obsolete) —
Attached file Main XML document (obsolete) —
Attachment #102816 - Attachment is obsolete: true
Attachment #102818 - Attachment is obsolete: true
Sorry for all the traffic.

The Main XML document attachment *does* work, maybe because I changed
the different locations to absolute in order to follow the bug
submission guidelines.

I you download the different attachments and use relative URLs instead,
you will reproduce the problem.
Depends on: 116755
sounds like this is related to bug 179231, didn't try to find my way thru
all these attachements.
this is probably a dup of bug 179231, but i'll mark it as dependant until i've
investigated some more
Depends on: 179231
Attached file yet another attachment
Hope this will be the last try...
I attach the test case as a zip compressed file, just uncompress it and load
tstdocument.xml, the two variables should have the same value.
This one is close to bug 179231, except that the third file is not an XSL,
but an XML document referenced by a variable :
<xsl:variable name="importContent" select="document('toolbar.xml')"/>
Attachment #102817 - Attachment is obsolete: true
Attachment #102819 - Attachment is obsolete: true
Attachment #102821 - Attachment is obsolete: true
Attachment #102822 - Attachment is obsolete: true

*** This bug has been marked as a duplicate of 179231 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: