<xsl:message terminate="yes"> doesn't display the message

NEW
Assigned to

Status

()

--
major
13 years ago
3 years ago

People

(Reporter: x2uk, Assigned: peterv)

Tracking

(Blocks: 1 bug)

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Please, consider the code:

<xsl:choose>
                           <xsl:when test="name=''">
                              <xsl:message terminate="yes">
                                 Fault: Name must always be given ! Use n/a
otherwise.
                              </xsl:message>
                           </xsl:when>
                           <xsl:otherwise>
                              <xsl:value-of select="name"/>
                           </xsl:otherwise>

Reproducible: Always

Steps to Reproduce:
1.Run the code fragment above
2.FireFox's XSLT processor will stop
3.The message fault's message will not be displayed

Actual Results:  
xsl:message will not be displayed.
Try IE : this is what it should like.

FF output :

Error during XSLT transformation: XSLT transformation was terminated by
<xsl:message>.


Expected Results:  
IE output
The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then
click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Fault: Name must always be given ! Use n/a otherwise. 


You ought to introduce xml - matters 
for the COMPONENT specification.
XML is a major component of FF.
(Reporter)

Comment 1

13 years ago
You ought to introduce xml - matters 
for the COMPONENT specification.
XML is a major component of FF.

Comment 2

13 years ago
(In reply to comment #1)
> You ought to introduce xml - matters 
> for the COMPONENT specification.
> XML is a major component of FF.

Please see Bug 298888 Comment 1.
Assignee: nobody → peterv
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → keith
Version: unspecified → Trunk
The message is displayed in the JS console if i recall correctly. But we should
also display it in the errormessage i agree.
Blocks: 112622
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 4

13 years ago
It would also be helpful if the message were available programatically to users of nsIXSLTProcessor; this doesn't seem to be the case at the moment.
QA Contact: keith → xslt
You need to log in before you can comment on or make changes to this bug.