Re: [xml] XPath normalize-space

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

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 Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine
Sep 17-18 2001 Brussels Red Hat TechWorld

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]