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

Re: special characters

Subject: Re: special characters
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 23 May 2003 11:44:15 -0400
eacute xslt
Abbouh,

At 05:24 AM 5/23/2003, you wrote:
how can you make special characters(like &eacute;) appairs in a text
output file in xsl encoding?

By which you mean, how can you output entities such as &eacute; in place of the characters they represent, from an XSLT transformation?


Basically you have two choices: (a) acquire or build a serializer you can integrate into your XSL processor that will do the necessary mapping. (How this is done and how easy it is will depend on your processor. Look up James Clark's XT to see a facility for doing this.) Or (b), post-process with another routine to convert the characters.

If you choose (b), the post-process can even be done with XSLT, although it should be stressed that it's XSLT put specifically to the purpose of what is, in effect, a string-munging operation, and it will use disable-output-escaping, so won't be portable across all XSLT engines. (It also won't be as fast, efficient, or scalable as other approaches. It's also not impossible to roll this string-munging into your main transform, but it's a messy kluge, Not Recommended.)

I hope that helps, a little, anyway.

Cheers,
Wendell


___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau


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.