This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to deal with special characters in XSL?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to deal with special characters in XSL?
- From: "Rafael 'Dido' Sevilla" <sevillar at team dot ph dot inter dot net>
- Date: Wed, 17 Oct 2001 15:31:08 +0800
- References: <001101c156d9$498e2970$2601a8c0@armitage.com.hk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Wed, Oct 17, 2001 at 02:59:28PM +0800, RABi wrote:
> 1) the parser treat all as undefined entities, if I use
> <![CDATA[ ]]>, it will be shown on the browser directly with the "&"
> converted to & in html. how can I put in my html without being
> converted?
>
Use   instead of . The latter is an HTML-ism, you need to
import the entities into your XSL file if you want to use it there, e.g.
<!ENTITY nbsp " ">
> 2) another problem happens to the "%" character. for e.g. I have a table
> which is 100% wide, I will have to write it as:
>
> <table>
> <xsl:attribute name="width"><![CDATA[100%]]></xsl:attribute>
> </table>
>
> that works well in the Orion parser, but when I open the same XSL file
> in IE directly, it will show "100%" inside the table on the screen! I have
> to use <table width="100%"> in IE to overcome this problem. is there anyway
> to make it work on all parsers?
MSXSL is not compliant with the standard. Give up hope on getting it to
work on IE until they decide to come up with a version that is fully
compliant with the official XSLT standard.
--
Rafael R. Sevilla <sevillar@team.ph.inter.net> +63(2) 8177746 ext. 8311
Programmer, Inter.Net Philippines +63(917) 4458925
http://dido.engr.internet.org.ph/ OpenPGP Key ID: 0x5CDA17D8
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list