xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] XSLT Disable-Output-Escaping Not Working


Subject: [xsl] XSLT Disable-Output-Escaping Not Working
From: "Shelli D. Orton" <shelli.orton@xxxxxxxxx>
Date: Thu, 13 May 2004 10:29:13 -0600

Hi,

I'm fairly new to XLST and have come across this problem.  I have a template
that creates an image element as below:

<xsl:element name="img">
	<xsl:attribute name="src">
		<xsl:choose>
			<xsl:when test="Content/Title/image">
				<xsl:value-of select="Content/Title/image" />
			</xsl:when>
			<xsl:otherwise>
					<xsl:value-of select="$defaultImage"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:attribute>
	<xsl:attribute name="alt">
		<xsl:value-of select="MetaData/title" disable-output-escaping="yes"/>
	</xsl:attribute>
</xsl:element>

When the value of MetaData/title is "This &amp; That", the &amp; is escaped
resulting in a title of "This &amp;amp; That" which the browser displays as
"This &amp; That".  Shouldn't the result be "This &amp; That" which the
browser displays as "This & That"?  I have used the disable-output-escaping
attribute in many other places and it has always worked before.


Thanks for any help.

Shelli


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor