[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: How to get   using IE5?


Subject: Re: How to get   using IE5?
From: "min zheng" <zmin@xxxxxxxxxx>
Date: Sat, 27 Mar 1999 16:00:58 -0800

Figured out how to do it:

In IE5, there is a <xsl:entity-ref ...> element (it's not documented, unless
I overlooked some part. It's at least not listed in the XSL elements
section). I accidentally found it from one of MS examples.


----- Original Message -----
From: min zheng <zmin@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Saturday, March 27, 1999 2:42 PM
Subject: How to get &nbsp; using IE5?


> In IE5, without support of  <xsl:text>, how can I get &nbsp; (or other
> entity references) in my result tree?
>
>  I tried several ways but none of them worked:
>
> 1. directly use "&nbsp;" (the way MS XSL output literal text):
> XML parser complain undifined entity
>
> 2. put "&amp;nbsp;":
> I got "&amp;nbsp;" but not "&nbsp;" (looks like the XML parser take &amp;
as
> an entity but XSL tool take it as literal text).
>
> 3. define an entity to get around XML parser:
>  I cann't because I don't have a DTD.
>
> 4. use <xsl:script> and <xsl:eval>:
> I got either parsing error (if  the function returns "&nbsp;"), or
> &amp;nbsp; (if returns "&amp;nbsp;"). Basically, the same as 1, 2
>
> 5. <![CDATA[&nbsp;]]>:
> I got &amp;nbsp;
>
> Any other ways?
>
> Min
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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



Current Thread
Keywords