RE: HTML output and entities

"Wilde, Bruce" <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
The xsl:value-of element also has the disable-output-escaping attribute
available. Perhaps, selecting proper yes/no value would assist you.

Bruce Wilde

-----Original Message-----
From: news [mailto:[email protected]] On Behalf Of P.N.
Sent: Wednesday, July 22, 2009 9:35 AM
To: [email protected]
Subject: Re: HTML output and entities

Thank You for Your answer!
The problem seems to be caused by the fact, that the whole tag is generated
depending on some context. So the code looks more like this:

<xsl:text disable-output-escaping="yes">&lt;input
value=&#34;</xsl:text><xsl:value-of
select="$some-var-containing-the-quot"/><xsl:text
disable-output-escaping="yes">&#34;&gt;</xsl:text>


[email protected] wrote:
>> I want to transform sth. like this:
>> <input value="My&quot; text"/>
>>
>> The translation results in this:
>> <input value="My&amp;quot; text">
>
> The former means the value is 'My " text'. The latter means the value 
> is 'My&quot; text'. Since the two really do mean different things, the 
> processor shouldn't be -- and almost certainly isn't -- converting one 
> to the other.
>
> Determine where the incorrect value is coming from -- the stylesheet? 
> the input document? -- and fix it there.
smime.p7s (application/x-pkcs7-signature, 5.1 KB) - not displayed
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.