Closed Bug 357006 Opened 18 years ago Closed 17 years ago

ignoring disable-output-escaping="yes" in xsl referenced in xml

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 98168

People

(Reporter: tomas.houska, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

XSL processor ignores attribute disable-output-escaping="yes" in <xsl:text> node. 
Not shure if that is a bug, but it is working in MSIE.

Reproducible: Always

Steps to Reproduce:
1.create plain xml referencing a xsl
2.create xsl holding this node 
<xsl:text disable-output-escaping="yes">&lt; br / &gt; </xs;:text>
3. load that xml into FireFox like a html site

Actual Results:  
Displays
< br />

Expected Results:  
do the line break

Mozilla firefox 1.5.0.7 for windows
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
> Gecko/20060909 Firefox/1.5.0.7
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
> Gecko/20060909 Firefox/1.5.0.7
> 
> XSL processor ignores attribute disable-output-escaping="yes" in <xsl:text>
> node. 
> Not shure if that is a bug, but it is working in MSIE.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.create plain xml referencing a xsl
> 2.create xsl holding this node 
> <xsl:text disable-output-escaping="yes">&lt; br / &gt; </xs;:text>
> 3. load that xml into FireFox like a html site
> 
> Actual Results:  
> Displays
> < br />
> 
> Expected Results:  
> do the line break
> 
> Mozilla firefox 1.5.0.7 for windows
> 

I believe that the example Thomas attached is not really the right description for the bug as the functionality he describes is right. When you want a line break you have to type "< br / >" but when you type "&lt; br / &gt;" you have to get "< br / >" as a text result. So it is not the right example.

My example for tihs bug is:
I would like to place a non-breaking space into my result page so i place the following text into my xslt file:

<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

This works with both Opera and IE6/7 but does not work with Firefox 1.5/2.

With Opera I get a non-breaking space in the output but with Firefox I get text result "&nbsp;".

And the cause might be what Thomas discovered: disable-output-escaping="yes" property is ignored.
I think it is unsupported, not ignored...
By the way, it is the duplicate of Bug 98168
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.