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]

RE: Matching Text that may have white-space prefix and append


> if l tried:
> 
> <xsl:apply-templates select="//phone[(../name)='Suk.']"/>
> 
> l would get back zero results.
> 
> This is because the XSLT processor does not ignore the space 
> between <name> and Suk. and </name>.
> 
> Is this the fault of the processor, or is there another way 
> of doing this?

The processor is behaving correctly. Use the normalize-space() function.

Mike Kay 


 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]