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

RE: text() handling

Subject: RE: text() handling
From: "Ross, Douglas" <DRoss@xxxxxxxxxx>
Date: Fri, 14 Jan 2005 11:26:18 -0500
xsl trim space
Oh, I see normalize-space is a built in function -- is that the right
word? -- so why use an extension! Well I guess I need to go fix my
scripts.

Thanks.

Douglas Ross
Developer, HTML UI Framework
Kronos
E-mail: dross@xxxxxxxxxx
Voice: (978) 947-4305
Fax: (978) 256-2474
www.kronos.com
Smaller, Faster, Sharper, Easier(tm)

-----Original Message-----
From: Ross, Douglas [mailto:DRoss@xxxxxxxxxx]
Sent: Friday, January 14, 2005 11:24 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  text() handling

One might need to preserve space for output formating but trim space for
testing conditions. Also, I wonder does normalize-space preserve a
single space? For example,

<anode>   foo   bar   </anode>

What would normalize-space do to the above node?
'foo bar', ' foo bar ', 'foo   bar'.

Douglas Ross
Developer, HTML UI Framework
Kronos
E-mail: dross@xxxxxxxxxx
www.kronos.com

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, January 14, 2005 11:16 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  text() handling

  Correction:

  match="node[xalan:trim(string(.))='anyValue']"


why would you use an extension function rather than just
normalize-space() which probably does more or less the same thing in
these cases?

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

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.