Re: [xml] XPath normalize-space
- From: Daniel Veillard <veillard redhat com>
- To: Bjorn Reese <breese mail1 stofanet dk>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] XPath normalize-space
- Date: Tue, 19 Jun 2001 14:17:22 -0400
On Tue, Jun 19, 2001 at 03:15:37PM +0000, Bjorn Reese wrote:
The XPath normalize-space() function concatenates whitespaces, amoungst
other things. This is done by ignoring all whitespaces except the last.
This means that if the string contains a newline, then this will be
preserved.
If I understand the XPath specification correctly [1], it says that
the function should be "replacing sequences of whitespace characters
by a single space". That means that a newline should be converted into
a space (0x20).
Fixing this is very easy, but I just wanted to verify that my
interpretation is correct.
Sounds right to me, go ahead !
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]