This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to disable output escaping inside attribute values


> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ivanco Maros
> Sent: Wednesday, April 10, 2002 11:26 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] How to disable output escaping inside attribute values
>
>
> Hi,
> 	is there any possibility to disable output escaping inside
> attribute values?

You don't need to.

> I would love to output some hard spaces (and maybe some other
> escape characters) in dynamic output.

Just use " " instead of " " (which is wrong in the first
place).

> Fragment of my generated XML is:
> <Location>
> 	<Company_name>My&amp;nbsp;&amp;nbsp;Company</Company_name>
> </Location>
>
> Desired HTML output is:
> 	<INPUT type="text" value="My&nbsp;&nbsp;Company"/>
>
> I have already tried
> 	<INPUT type="text" value="{/Location/Company_name}"/>
> and
> 	<xsl:variable name="pom"><xsl:value-of
> disable-output-escaping = "yes"
> select="/Location/Company_name"/></xsl:variable>	<INPUT
> type="text" value="{$pom}"/>
>
> but I always get:
> 	 <INPUT type="text" value="My&amp;nbsp;&amp;nbsp;Company"/>
>
> I will appreciate any suggestion or workaround.
>
> Maros.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]