Re: [xsl] maintain TeX ampersands

Subject: Re: [xsl] maintain TeX ampersands
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 10 Nov 2003 10:05:43 GMT

> Unfortunately some of the TeX contain obviosuly ampersands which I 
> thought that being in CDATA they would not be converted to &amp;-s . 

To represent an ampersand in XML you can either go &amp; or
<![CDATA[&]]> these mean the same thing and either of them will, in XSLT,
result in a string value of a string of length 1 consisting of a single
ampersand character. This is presumably what you want.

If you output a string containing an ampersand from xslt using the text
output method you get a & but if you output it using the html or xml
methods you get any XML syntax that would result in a single & being
reported by the parser, typically xslt systems use either &amp; or
<![CDATA[&]]>.

What exactly was the problem that you were having?

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Current Thread