[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: maintain TeX ampersands

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

> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.