Ok, I looked into using HTML Tidy -- actually the JTidy implementation
of it.  Here's what could be done: implement the JTidy engine as a
filter so that HTML that was output would be "cleaned."  

Here are the problems:

*  JTidy adheared to HTML Tidy, which was only HTML 4.0 compliant.
*  HTML Tidy certainly wasn't perfect.
*  I would assume that using such a filter would NOT be advisable in
   a production environment as it almost certainly would slow things
   down.  (It's not like it's GZipping output or actually removing
   whitespace.)

Now, with those potential problems, would anyone be interested in this
type of filter to run in a development environment?   I'm not saying
that I could do it (I don't have much spare time right now) , I'm
simply trying to see there is any interest.

Derek



--- Andreas Schildbach <[EMAIL PROTECTED]> wrote:
> Keith wrote:
> 
> > I've noticed that JSP never suppresses any whitespace at all
> outside the < > characters. 
> > I'm doing HTML output, so this doesn't effect me to much in the
> final output.
> 
> In HTML it does indeed matter if you do have a whitespace or none at
> all 
> (not in your special example, though).
> 
> For me, its not a matter of how ugly or pretty the HTML source looks,
> 
> but wether it produces the desired output in the users web browser or
> not.
> 
> I wish HTML would know a special &swallow; entity that would instruct
> 
> the parser to swallow all  surrounding whitespace. This would make 
> things much easier.
> 
> Regards,
> 
> Andreas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=====



        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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

Reply via email to