Hi
>From Michael Kay's XSLT Book:
If the output is not XML or HTML at all, then rather than using
_disable-output-escaping_ it is better to set
_method="text"_ on the _<xsl:output>_ element. (M. Kay, p. 302)

-----Urspr�ngliche Nachricht-----
Von: Nick Semenov [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Mai 2001 17:47
An: Sablotron Mailing List
Betreff: RE: [Sab] What output method to use?



Thanks, that's it!

Do I understand correctly that in the output-method="text" uses
disable-output-escaping="yes" as the default and
output-method="xml", "html" and "xhtml" will use
disable-output-escaping="no"?

Thanks

-----Original Message-----
From: Dominique ROUSSEAU [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 10:41 AM
To: Sablotron Mailing List
Subject: Re: [Sab] What output method to use?



Le Tue, May 15, 2001 at 10:33:55AM -0400, Nick Semenov
[[EMAIL PROTECTED]] a �crit:
>
> That is only applicable to constant values.  What I need is to turn
> xml-escaped attribute
> value into:
>       <script>
>               <xsl:text>SomeVariable=</xsl:text>
>               <xsl:value-of select="@name"/>
>               <xsl:text>;</xsl:text>
>       </script>
>
> In this context value of the @name should be un-escaped:  name="M &amp; S
> Oxygen"
> will transform into "M & S Oxygen".

Wouldn't the 'disable-output-escaping="yes"' attrib do the trick ??
(on xsl:value-of)

Dom

--
Dominique Rousseau <[EMAIL PROTECTED]>
Neuronnexion - http://www.neuronnexion.com

Reply via email to