[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] text() handling


Subject: RE: [xsl] text() handling
From: "Ross, Douglas" <DRoss@xxxxxxxxxx>
Date: Fri, 14 Jan 2005 11:23:45 -0500

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: [xsl] 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