Subject: RE: [xsl] text() handling From: "Ross, Douglas" <DRoss@xxxxxxxxxx> Date: Fri, 14 Jan 2005 11:26:18 -0500 |
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: [xsl] 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: [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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] text() handling, Michael Kay | Thread | RE: [xsl] text() handling, Ross, Douglas |
Re: [xsl] How to used HTML tags wit, Ahmed El-dawy | Date | Re: [xsl] How to used HTML tags wit, David Carlisle |
Month |