Re: HTML output and entities

David Bertoni <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
P.N. wrote:
> 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>
xsl:text generates a text node, so the processor must escape markup 
characters.

If you stop use xsl-text with the disable-output-escaping hack, you will 
have better luck:

<input value="{$some-var-containing-the-quot}">

disable-output-escaping is rarely a wise choice, and is not supported on 
some processors and/or output methods.

Dave
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.