The style sheet is not applied to the xml file.

VERIFIED INVALID

Status

()

VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: bsharma, Assigned: peterv)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

17 years ago
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

17 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

17 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
Last Resolved: 17 years ago
Resolution: --- → INVALID

Comment 5

17 years ago
bitching buttons, verfication spam
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.