I agree with the principle but there is the 'third way' : - I want to have cross-browser HTML code (netscape 4.0 + IE) so I can't afford relying on stylesheet only. My aim is to reduce the number of hits on my webserver, that's why I'b better avoid including called to external stylesheets. - Browsers get lost on attributes values without quotes only when the value of attributes contains not numeric values. For example : "width=80 height=60" is as easy to render as width="80" and height="60", but not width=100% for example. So removing quotes can be significant.
- A more cocoon-oriented question. How do you implement whitespace stripping and carriage returns stripping with cocoon ? Manos Batsis wrote: >Sebastien, > >I would advise you to reconsider your viewpoint. >You are suggesting that by sending HTML3.2 you gain the advantage of >fewer bytes; I disagree. If you want to save bandwidth, XHTML is what >you need. That's because it's modular. You can move most of >presentation-related info to a cascading stylesheet, which will make >downloads faster (stylesheets are reusable and browsers tend to cash >them). >Also, there are more things than download time; how about rendering >time? Your 'fewer bytes' advantage turns zero if the browser has to go >through figuring out what the crippled (by today's standards) markup >means to render the page. >I would consider using the XHTML basic DTD if you need something really >compact and simple. And there's always whitespace stripping. > >Cheers, >Manos > > > >>-----Original Message----- >>From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, June 25, 2002 2:34 PM >>To: [EMAIL PROTECTED] >>Subject: 'optimised HTML' serialiser >> >> >>Hi, >> >>In a production environment, it's important to have 'optimised HTML' >>(without quotes, without spaces, etc ...) in order to lower >>the number >>of bytes to the end user. This question sounds a little >>silly, but does >>anyone know a transformer or a serialiser that produces such HTML ? >> >> >>--------------------------------------------------------------------- >>Please check that your question has not already been answered in the >>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >> >>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>For additional commands, e-mail: <[EMAIL PROTECTED]> >> >> > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>