Re: Insignificant whitespace

Hello Petteri,

The only insignificant whitespace is the whitespace between
elements in element content. With an XPath/nodes-based
approach, and assuming it is a validating processor and
you have the DTD (not sure that's how it's defined at
the moment), you can get rid of that.

However, you cannot get rid of whitespace in element content.
The XML spec only says (

The value "default" signals that applications' default white-space
processing modes are acceptable for this element; the value "preserve"
indicates the intent that applications preserve all the white space.

Because you don't know what the default processing of the application
is, you can't get rid of the (maybe insignificant) whitespace.

Regards,   Martin.

At 00/08/29 08:49 +0300, Petteri Stenius wrote:

>The issue with whitespace in XML element content has been very briefly
>discussed during interop testing. I would like raise this issue on the list,
>as I believe many people expect insignificant whitespace to be cleaned up by
>the C14N algorithms.
>The current specification provides no way for an application to skip or
>cleanup insignificant whitespace from a signed XML document before
>digesting. However, 'insignificant' comment elements are skipped by the
>default C14N algorithm!
>I think we could make use of a transformation algorithm that cleans up
>insignificant whitespace, the algorithm should obviously detect xml:space
>Petteri Stenius                
>Done Information, Ltd.                         Office +358-9-5259240
>                                                  Fax +358-9-52592411
>               Mobile +358-50-5506161

Received on Wednesday, 30 August 2000 01:48:54 UTC