Closed
Bug 84502
Opened 24 years ago
Closed 24 years ago
The style sheet is not applied to the xml file.
Categories
(Core :: XSLT, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: bsharma, Assigned: peterv)
References
()
Details
I have a test case that uses the style sheet to display the contents. But, it
seems that style sheet is not applied. The test case loads fine in IE.
The test case is provided in the url field.
Here is the source of the style sheet named sales.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
default-space="strip" indent-result="yes">
<xsl:template match="/">
<html>
<head><title>Sales By Department</title></head>
<body>
<table align="center" cellpadding="5" border="1">
<tr><th>Department</th><th>Revenue</th><th>Profit</th></tr>
<xsl:apply-templates />
</table>
</body>
</html>
</xsl:template>
<xsl:template match="sales">
<xsl:apply-templates match="department">
<xsl:sort select="profit" data-type="number" order="ascending"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="department">
<tr>
<td><xsl:value-of select="@id" /></td>
<xsl:apply-templates select="revenue" />
<xsl:apply-templates select="profit" />
</tr>
</xsl:template>
<xsl:template match="revenue | profit">
<td><xsl:apply-templates /></td>
</xsl:template>
</xsl:stylesheet>
Please file XSLT bugs on the XSLT component, assigning them to
peterv@netscape.com. Thanks.
Assignee: heikki → kvisco
Component: XML → XSLT
QA Contact: petersen → kvisco
-> Peter
Assignee: kvisco → peterv
Comment 3•24 years ago
|
||
put the sample on a official server, please.
Verify that the mime-type for both the xml and xsl is text/xml.
If it's not, please mark this INVALID ;-)
Axel
Assignee | ||
Comment 4•24 years ago
|
||
The server returns text/plain for the XSLT stylesheet. It should return text/xml
(see last paragraph of section 1 of http://www.w3.org/TR/xslt.html).
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•