[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: text() handling
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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|