.xml and a .xsl file don't show links (IE 5.x does)

RESOLVED INVALID

Status

()

RESOLVED INVALID
17 years ago
17 years ago

People

(Reporter: wtzhu, Assigned: peterv)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)
BuildID:    20020402

The starting page, index.xml is written in XML as the folloing:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml:stylesheet type="text/xsl" href="index.xsl"?>
<list><name>This XML file cannot be correctly viewed
by mozilla :-( </name>
<soft><name>Mozilla</name><comment>The Open Source Browser</comment></soft>
<soft><name>Kernel</name><comment>The Linux Kernel Archives</comment></soft>
</list>

While the referred index.xsl is written as the following:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!--root template-->
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE><xsl:value-of select="list/name"/></TITLE>
</HEAD>
<BODY>
<TABLE>
<xsl:for-each select="list/soft">
<TR>
<TD class="border1"><a><xsl:attribute name="HREF">http://www.<xsl:value-of 
select="name"/>.org/
</xsl:attribute><xsl:attribute name="TARGET">_blank</xsl:attribute><xsl:value-
of select="name"/></a></TD>
<TD class="border1"><xsl:value-of select="comment"/></TD>
</TR>
</xsl:for-each>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>

Save the two simple files into the same directory, and we can now
test the file using Mozilla. The content especially the URL links
are not shown up. However, it works OK when using M$ IE 5.0+ :-(


Reproducible: Always
Steps to Reproduce:
1.Save the two text files as I have given as index.xml and index.xsl.
2.Open index.xml with Mozilla.


Actual Results:  Content can not be rendered properly but mozilla doesn't report
any errors.

Expected Results:  The web content, especially the URL links as described by 
index.xsl
should have shown up.

I tested the bug using Mozilla 0.9.8 for Linux and Mozilla build
20020402 for Windows. I got the same result. Mozilla doesn't crash,
it just can't render the combination of the .xml and .xsl file.
(Reporter)

Comment 1

17 years ago
Created attachment 77415 [details]
Hi, I finally got a way to attach my files :-)

Extract the .zip file and you'll got the two files as I've described:
index.xml and index.xsl

Comment 2

17 years ago
Can't see the links on linux 2002040108 too. Resummarizing for better
readability. Confirming an reassigning to XML people.
Assignee: attinasi → heikki
Status: UNCONFIRMED → NEW
Component: Layout → XML
Ever confirmed: true
OS: Linux → All
Summary: The web page that my Mozilla cannot render properly is just composed of a .xml and a .xsl file, the URL links are not shown up while the web page is displayed OK when using M$ Internet Explorer 5.0 or higher. → .xml and a .xsl file don't show links (IE 5.x does)
->XSLT (transformed document)
Assignee: heikki → peterv
Component: XML → XSLT
QA Contact: petersen → kvisco
you're using the wrong (IE-only) namespace. http://www.w3.org/1999/XSL/Transform
is the right one.

Please read the FAQ at http://www.mozilla.org/projects/xslt/
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
(Reporter)

Comment 5

17 years ago
Well, is there any way to modify or rewrite the xsl to make it fit for both
Mozilla and M$IE?

Comment 6

17 years ago
http://www.mozilla.org/projects/xslt/index.html#faq part 2 says that IE does
support the standard. If your copy does not, update.
You need to log in before you can comment on or make changes to this bug.