On Monday 03 February 2003 16:05, Robin Berjon wrote:

> No, not really. You'd need to have a DTD (or XML Schema, but lets not
> go there) declaring in which elements is whitespace significant and
> in which it isn't.

OK, I don't understand that, but never mind.

> I'd say that having a way of telling the taglib helpers that "in this
> element, whitespace is irrelevant" would be helpful because people
> are bound to be bitten by that and not necesarily know why because
> programming habits get us into the habit that indentation is
> irrelevant (except in That Other Language, but well...). I'm not sure
> that paying attention to xml:space is useful though, it's probably
> something that can be simply specified at the taglib level (makes it
> easier too).

Yup. And SimpleTaglib has a keepWhitespace input attribute, so there has 
been work in that direction. I just felt that if there is some nice way 
to do it that would not be specific to taglibs, it would be cool... :-) 

> Taglib helpers doing that would simply s/^\s*//, s/\s*$//, and s/\s+/
> /.

Certainly!

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to