This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Matching Text that may have white-space prefix and append
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Matching Text that may have white-space prefix and append
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 8 Nov 2000 18:08:27 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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