Kjetil Kjernsmo wrote:
But then, I might as well ask... :-)Yes it is. In order for whitespace to be ignored, you'd have to be using a DTD (and those horrors don't quite mix well with namespaces) and taglibs would have to be fully SAX2 (to support ignorable_whitespace() instead of characters()). In other words, it's best for you to deal with it yourself.
I have noted that constructs such as <user:get-passwd>
<user:username>kjetil</user:username>
</user:get-passwd>
work OK, but
<user:get-passwd>
<user:username>
kjetil
</user:username>
</user:get-passwd>
tend to give unexpected results, probably due to the extra whitespace. Is it my responsibility to remove whitespace in the taglibs I write if it is in the way?
I seem to recall that the XML spec has a couple of things about whitespace, yup, http://www.w3.org/TR/REC-xml#sec-white-spaceNot much no, most of those rules tend to be pretty much useless in many cases. Whitespace is one of the Recurrent Problems People Have With XML.
Perhaps this could be made use of?
--
Robin Berjon <[EMAIL PROTECTED]>
Research Engineer, Expway http://expway.fr/
7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
