- From: Sebastian Lange <lange@cyperfection.de>
- Date: Mon, 04 Sep 2000 14:40:16 +0200
- To: html-tidy@w3.org
I basically do the same trick, define a couple PHP variables, include a header file, then comes the page content, and then I include a footer file. For the content cleaning, I added the option "body-only" to my online version of tidy [http://www.sl-chat.de/Tidy/?body-only=yes]... and then I let some lower charges copy and paste the text into tidy and from there into my template files... ;-) sebastian At 23:50 03.09.2000 +0200, Stephan Engelke wrote: >Hi everyone, > >currently I am in the process of restructuring a Web-site I maintain. >While doing so I will be switching from HTML 4 to XHTML 1 and I hope >to use tidy to do some cleaning for me. > >I'd like to generate the header information along with the title tag >and the DTD-lines as well as the footer (including the </body> and ></html> tag automatically through PHP scripts. Whenever I run tidy on >the source of such a document, it complains (quite correctly) about >missing tags and DTD-lines. > >I'd like to do as much as possible automatically to facilitate later >maintenance. > >My ideal would be something like this: >--- top of file --- ><?php > include ("common.php3"); > mkheader ("Page title and <h1>-tag contents", "menu specifier"); >?> > >(some text) > ><?php mkfooter(); ?> >--- end of file --- > >I don't really like the idea of having to display a file, save it, run >tidy on it and then check for the problems in the source file. This >would be way to cumbersome to be productive in any way. > >I am wondering what other people on this list do about this? Are >there any reasons not to use the way of automatisation I described >above? > >I noticed some questions regarding this but I have not seen any >answers. > >Thanks in advance -- Stephan >-- >Stephan Engelke engelke@gmx.net > *** "He's dead, Jim. You grab his wallet, I'll grab his > tricorder." *** -- Sebastian Lange http://www.sl-chat.de/ Maybe the first chat site that validates as HTML 4.0 even though user input may contain HTML codes. Courtesy to Dave Raggett's HTML Tidy: http://www.w3.org/People/Raggett/tidy/ Tidy your documents ONLINE: http://www.sl-chat.de/Tidy/
Received on Monday, 4 September 2000 08:43:18 UTC