Closed
Bug 174372
Opened 22 years ago
Closed 22 years ago
Regression on XSLT document() function with external document value
Categories
(Core :: XSLT, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 179231
People
(Reporter: mickael.guessant, Assigned: peterv)
Details
Attachments
(1 file, 6 obsolete files)
1.22 KB,
application/zip
|
Details |
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
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Comment 3•22 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
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>
Reporter | ||
Comment 5•22 years ago
|
||
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>
Reporter | ||
Comment 6•22 years ago
|
||
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&action=view</fil
e>
Reporter | ||
Comment 7•22 years ago
|
||
Reporter | ||
Comment 8•22 years ago
|
||
Reporter | ||
Comment 9•22 years ago
|
||
Reporter | ||
Updated•22 years ago
|
Attachment #102816 -
Attachment is obsolete: true
Reporter | ||
Updated•22 years ago
|
Attachment #102818 -
Attachment is obsolete: true
Reporter | ||
Comment 10•22 years ago
|
||
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.
Comment 11•22 years ago
|
||
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
Reporter | ||
Comment 13•22 years ago
|
||
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
No longer depends on: 116755
*** This bug has been marked as a duplicate of 179231 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
No longer depends on: 179231
You need to log in
before you can comment on or make changes to this bug.
Description
•