HighDots Forums  

A serious drawback of CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss A serious drawback of CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dario de Judicibus
 
Posts: n/a

Default A serious drawback of CSS - 01-23-2006 , 10:10 AM






I am experimenting with CSS since 2001. As I moved from frame based sites to
CSS sites, I realized that the major drawback of CSS is that you cannot
anymore have your header, manu, footer and content panes in different files,
but you have to *repeat* them in *each* page you do. If I have to change any
common section, I have to apply the change in many different files at the
same time. Maintenance is now a real mess.

Of course, when I can take advantage of PHP or other server languages, I can
use their import statements to get common sections (as copyright) from a
single file, but I cannot always rely on PHP availability. Often I have to
code client-based pages, and in such a case I have to duplicate a lot of
stuff. That's crazy. XHTML has no import statement, nor there is a way in
CSS to specify division content from another file.

What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot
always do that.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Dario de Judicibus - Italy (EU)
Site: http://www.dejudicibus.it/
Blog: http://lindipendente.splinder.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 10:48 AM






"Dario de Judicibus" <nospam (AT) nowhere (DOT) com> wrote:

Quote:
I am experimenting with CSS since 2001. As I moved from frame based sites to
CSS sites, I realized that the major drawback of CSS is that you cannot
anymore have your header, manu, footer and content panes in different files,
but you have to *repeat* them in *each* page you do.
Frames are a horribly broken concept, one of the main *causes* is that a
single page consists of several separate files.

Quote:
If I have to change any
common section, I have to apply the change in many different files at the
same time. Maintenance is now a real mess.

Of course, when I can take advantage of PHP or other server languages, I can
use their import statements to get common sections (as copyright) from a
single file, but I cannot always rely on PHP availability.
You can if you install it locally and use it to build static pages,
although using a preprocessor is a more common approach.

Quote:
Often I have to
code client-based pages, and in such a case I have to duplicate a lot of
stuff. That's crazy. XHTML has no import statement, nor there is a way in
CSS to specify division content from another file.
And that's a good thing, importing code fragments via (X)HTML or CSS
would result in all existing UAs not being able to handle content that
would use such a feature. There is off course also the principle issue
that CSS is for applying *presentation*.

Quote:
What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot
always do that.
You can use a preprocessor, template based authoring systems usually
allow inclusion of code fragments, swapping out code blocks is easy with
a good quality S&R function, and lastly the aforementioned locally
installed scripting solution.

--
Spartanicus


Reply With Quote
  #3  
Old   
Matt Silberstein
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 12:56 PM



On Mon, 23 Jan 2006 16:48:00 GMT, in
comp.infosystems.www.authoring.stylesheets , Spartanicus
<invalid (AT) invalid (DOT) invalid> in
<nf1at19vhsok284sa7p725egbi4k124cr7 (AT) news (DOT) spartanicus.utvinternet.ie>
wrote:

Quote:
"Dario de Judicibus" <nospam (AT) nowhere (DOT) com> wrote:

I am experimenting with CSS since 2001. As I moved from frame based sites to
CSS sites, I realized that the major drawback of CSS is that you cannot
anymore have your header, manu, footer and content panes in different files,
but you have to *repeat* them in *each* page you do.

Frames are a horribly broken concept, one of the main *causes* is that a
single page consists of several separate files.
My first, wrong, thought was that separate files was a good thing. But
as you imply in the rest of your post, it is good as a creation tool,
not for client side delivery. Libraries are great stuff. We mostly use
them for scripts and such, but in concept it would work for HTML (you
can already have multiple css files) as well. Just, as you say, do it
with a pre-processor or something.

It occurs to me that that concept is the biggest problem with WYSIWYG
editors. Not that they produce bad code but that they stop you from
seeing that is code to then be processed. When you see you are writing
code to the process for display it is no big deal to have a processing
step in the middle make the display file.


[snip]

--
Matt Silberstein

Do something today about the Darfur Genocide

http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org

"Darfur: A Genocide We can Stop"


Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 01:10 PM



Matt Silberstein wrote:

Quote:
It occurs to me that that concept is the biggest problem with WYSIWYG
editors. Not that they produce bad code but that they stop you from
seeing that is code to then be processed. When you see you are writing
code to the process for display it is no big deal to have a processing
step in the middle make the display file.
A good graphical HTML generator could understand the language used by the
processing tool and perform such processing on the fly, automatically
switching files as the cursor moves into different sections of the page.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #5  
Old   
Matt Silberstein
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 02:19 PM



On Mon, 23 Jan 2006 19:10:01 +0000, in
comp.infosystems.www.authoring.stylesheets , David Dorward
<dorward (AT) yahoo (DOT) com> in <dr39p1$cko$2$8302bc10 (AT) news (DOT) demon.co.uk> wrote:

Quote:
Matt Silberstein wrote:

It occurs to me that that concept is the biggest problem with WYSIWYG
editors. Not that they produce bad code but that they stop you from
seeing that is code to then be processed. When you see you are writing
code to the process for display it is no big deal to have a processing
step in the middle make the display file.

A good graphical HTML generator could understand the language used by the
processing tool and perform such processing on the fly, automatically
switching files as the cursor moves into different sections of the page.
Do you know of such a thing?

--
Matt Silberstein

Do something today about the Darfur Genocide

http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org

"Darfur: A Genocide We can Stop"


Reply With Quote
  #6  
Old   
David Dorward
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 02:43 PM



Matt Silberstein wrote:

Quote:
A good graphical HTML generator could understand the language used by the
processing tool and perform such processing on the fly, automatically
switching files as the cursor moves into different sections of the page.

Do you know of such a thing?
No, but its a nice idea.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #7  
Old   
Matt Silberstein
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 03:30 PM



On Mon, 23 Jan 2006 20:43:00 +0000, in
comp.infosystems.www.authoring.stylesheets , David Dorward
<dorward (AT) yahoo (DOT) com> in <dr3f7d$ct4$2$8300dec7 (AT) news (DOT) demon.co.uk> wrote:

Quote:
Matt Silberstein wrote:

A good graphical HTML generator could understand the language used by the
processing tool and perform such processing on the fly, automatically
switching files as the cursor moves into different sections of the page.

Do you know of such a thing?

No, but its a nice idea.
Tease.

--
Matt Silberstein

Do something today about the Darfur Genocide

http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org

"Darfur: A Genocide We can Stop"


Reply With Quote
  #8  
Old   
Jasen Betts
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-23-2006 , 11:44 PM



On 2006-01-23, Dario de Judicibus <nospam (AT) nowhere (DOT) com> wrote:
Quote:
Of course, when I can take advantage of PHP or other server languages, I can
use their import statements to get common sections (as copyright) from a
single file, but I cannot always rely on PHP availability. Often I have to
code client-based pages, and in such a case I have to duplicate a lot of
stuff. That's crazy. XHTML has no import statement, nor there is a way in
CSS to specify division content from another file.

What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot
always do that.
build the files in pieces and use a script to combine them, put the
combined files on the server.

--

Bye.
Jasen


Reply With Quote
  #9  
Old   
Chris Sharman
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-24-2006 , 02:58 AM



Dario de Judicibus wrote:
Quote:
What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot
always do that.
It's been a while, but I think html-tidy (from www.chami.com ) has an
include facility. You're quite right, it's essential to maintenance.

Chris


Reply With Quote
  #10  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: A serious drawback of CSS - 01-24-2006 , 04:28 AM



On Tue, 24 Jan 2006, Jasen Betts wrote:

Quote:
On 2006-01-23, Dario de Judicibus <nospam (AT) nowhere (DOT) com> wrote:

What can I do? Please, do NOT tell me «use PHP, ASP or
ColdFusion». I cannot always do that.

build the files in pieces and use a script to combine them, put the
combined files on the server.
Consider using "make". Write a Makefile which defines your automated
processes to be applied after a source code update, via your
processing chain, HTML validation etc., and finally upload to server.

Of course, "make" is usually thought of as a tool for software
development, but don't let that distract you.

There's a bit of a learning curve, but it can result in a flexible and
convenient final process. You could define make "targets" like "make
check", "make publish" etc. Via the "dependencies", your Makefile
will show which published pages "depend" on components which have been
updated (as shown by their file's timestamp), and will rebuild only
those pages which are affected by the changes, if it's done right.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.