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

RE: Special Characters for Position Sepcific Output.

Subject: RE: Special Characters for Position Sepcific Output.
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 27 Jul 2001 09:40:47 +0100
RE:  Special Characters for Position Sepcific Output.
> Sample ouput in normal case is
> *Steve                    *
>
> In case of input like <firstname>St&amp;eve</firstname>,
> output will be
> *St&amp;eve                   *
> 	which exceeds 25 characters.
>
> Please let me know, how can I handle this condition in XSL.

"&amp;" is one XML character, even though it is serialized using 5 ASCII
characters. You can't control how the XML character is serialized; the above
string might equally have been output as

 <![CDATA[*St&eve                   *]]>

And if you're outputting XML, why should you want a fixed length?

Usually people wanting fixed-format output are generating text, with
<xsl:output method="text">, in which case special characters like "&" will
not be escaped.

Mike Kay
Software AG


 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.