> My instinct is to classify things in a bit more detail.  I haven't applied
> XML to a wide-enough range of applications to be confident but I suspect
> that these three white-space handling options make sense:
>         1) prune text nodes that consist only of white space
>         2) trim leading/trailing space
>         3) normalize sequences of white-space characters to a single space.

2 and 3 are consistent with the way in which HTML handles white spaces
and could be regarded as a behavior for all elements that do not specify
xml:space=preserve. This is something a whitespace handling filter
should take care of. No 1 is simply an instance of no 2.

And ignorable whitespace is defined as any whitespace appearing between
the open tag of an element and the closing tag of an element, that is
not part of any element contained in that element, and that element is
declared to have element content only.

Any whitespace appearing between the opening tag and closing tag where
an element is declared to have text content or mixed content is
whitespace, but not ignorable whitespace. It can be subject to the form
of normalization you proposed (which, BTW, I also like :-) )

arkin


> 
> -- jP --
> 
> This message is for the named person's use only.  It may contain
> confidential, proprietary or legally privileged information.  No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please immediately delete it and all
> copies of it from your system, destroy any hard copies of it and notify the
> sender.  You must not, directly or indirectly, use, disclose, distribute,
> print, or copy any part of this message if you are not the intended
> recipient. CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each of
> their subsidiaries each reserve  the right to monitor all e-mail
> communications through its networks.  Any views expressed in this message
> are those of the individual sender, except where the message states
> otherwise and the sender is authorised to state them to be the views of
> any such entity.

Reply via email to