Subject: RE: Matching Text that may have white-space prefix and append
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 8 Nov 2000 18:08:27 -0000
|
> 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
|