Closed Bug 84502 Opened 23 years ago Closed 23 years ago

The style sheet is not applied to the xml file.

Categories

(Core :: XSLT, defect)

x86
Windows NT
defect
Not set
normal

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
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
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: 23 years ago
Resolution: --- → INVALID
bitching buttons, verfication spam
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.