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 & S
Oxygen"
will transform into "M & S Oxygen".
Thanks.
-----Original Message-----
From: Pavel Hlavnicka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 8:04 AM
To: Sablotron Mailing List
Subject: Re: [Sab] What output method to use?
<xsl:text disable-output-escaping='yes'>blah blah </xsl:text>
Nick Semenov wrote:
> Oops! you right! The problem is that attribute value becomes part of
> JavaScript variable.
> How do I specify "text" output method for separate parts of the document?
>
> Thanks
> -----Original Message-----
> From: Roger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 5:25 AM
> To: Sablotron Mailing List
> Subject: AW: [Sab] What output method to use?
>
>
>
> Hi Nick
> Why should it change to &. Even in HTML source code it should be & -
> only when someone watches it with a browser should it turn into &!
> Bye
> Roger
>
>
>
>
> Hi there.
>
> Please, get me an idea why attribute values are not un-escaped in the
"html"
> output method.
> I have the <Branch name="M & S Oxygen"> in my xml which I expect to
turn
> into <Branch name="M & S Oxygen"> after transformation but this does not
> happen.
>
> This is the beggining of my stylesheet.
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html"/>
> ...
>
> Version tested = 5.0
>
> Any ideas are appreciated.
>
> Regards,
> Nick Semenov
>
--
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com