This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Empty elements


Use the normalize-space() function.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of TP
> Sent: 21 February 2002 18:25
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Empty elements
> 
> 
> I have a xml as
> **
> <FIELD_MASK>
> NEOL                                         </FIELD_MASK>
> **
> and I want to compare it
> **
> <xsl:when test = "FIELD_MASK='NEOL'">
> **
> Obviously this will not work because of the prevailing white 
> spaces. Is
> there a way for me to obtain a substring to compare or 
> .trim() this using
> xsl.
> 
> Please let me know.
> 
> Thanks,
> 
> TP.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]