Re: disable-output-escaping

"Gabriel Blum" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
It can't be done when the data comes from a database that contains HTML code 
that you can't check if its correct or not. In general, such data contains 
tags that aren't closed, like <br> ; This kind of use is tremendously 
common.

I think ... and it's just a humble thought

that by definition.... ( taken from http://www.w3.org/TR/xslt )
"This specification defines the syntax and semantics of XSLT, which is a 
language for transforming XML documents into other XML documents."

You know, transforming "documents" into "documents"... That means the output 
of the transformation should be a document,
not a dom-tree, not anything else;

IMHO, I think that is essential that you change the way things are done, not 
only to make things even with IE, but also to
allow a --killer-- feature which is to view the source of the xslt 
transformation... That would make development in xml/xslt much easier and 
would make firefox be the defacto browser for developing in xslt.

Let me know if there's any way I can help. I'm willing to contribute code. 
I'll read the roadmap as soon as I can

Best Regards,
Gabriel Blum


"Martin Honnen" <[email protected]> wrote in message 
news:[email protected]...
>
>
> Maria Amuchastegui wrote:
>
>> The FAQ page says there is usually a workaround. What would be the 
>> workaround?
>
>>>>I have this in my XML data:
>>>><ServiceHeader header="Services Étoiles&lt;sup&gt;MC&lt;/sup&gt;:">
>>>>
>>>>And this in my stylesheet:
>>>><xsl:value-of select="@header" disable-output-escaping="yes"/>
>>>>
>
> If you can change your XML data to
>   <ServiceHeader>
>     <header>Services Étoiles<sup>MC</sup>:</header>
>
> and then in the stylesheet use
>   <xsl:apply-templates select="header" />
> instead of the
>   <xsl:value-of select="@header" disable-output-escaping="yes"/>
> you have currently.
> Then add a template for
>   <xsl:template match="header>
>     <xsl:apply-templates />
>   </xsl:template>
>   <xsl:template match="sup">
>     <xsl:copy>
>       <xsl:apply-templates />
>     </xsl:copy>
>   </xsl:template>
>
>
> If you can't change the input XML then you have more work in the XSLT, you 
> need to break up the string and create the element <sup> as needed.
>
>
> -- 
>
> Martin Honnen
> http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.