Tim Bray wrote:
> At 04:04 PM 1/6/00 -0800, Assaf Arkin wrote:
[...]
> >+1 on documenting that you have to go trim your text nodes and ignore
> >others if the DTD is missing (conclusion: always use some DTD)
> 
> Seems to me it's kind of a waste of time for an app writer to count on
> help from the DOM here, simply because there are going to be lots of
> times when you don't have a DTD or schema or whatever.    Thus, you're
> going to have to write the code to nuke the superfluous whitespace
> anyhow

I agree: a facility that only works most of the time is useless: you end up
writing the code anyway.

> so why not just curse a little bit and then do it?

So why not provide a standard facility that saves millions of programmers
all having to write the same tedious little bit of code?  Only the app
writer can know exactly what needs doing, but one can provide help for some
of the common cases.

> What would be nice, though, would be a library somewhere in Apache-land

Why "somewhere in Apache land" and not in a better defined location?

> that does with whitespace more or less exactly what HTML does, given
> as input a set of tags that are: [...]

Sounds promising!

-- 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