W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

Re: SSI support

From: Sebastian Lange <lange@cyperfection.de>
Date: Wed, 10 May 2000 11:55:30 +0200
Message-Id: <4.3.1.2.20000510114515.00b66fe8@pop3.cyperfection.de>
To: "Egor Shokurov" <yeghors@netreflector.com>, "HTML Tidy MailList" <html-tidy@w3.org>
Hello Egor,

with minor modifications, you could use the PERL wrapper for tidy that I am 
currently writing. It should do what you want - parse and correct the 
content of your shtml-file and strip tidy's added document tags.

I am going to think a bit about how to make more flexible, thus more 
suitable for your needs, and implement that then... I expect it to be done 
by Friday or the following Monday.


sebastian

At 13:33 10.05.2000 +0400, Egor Shokurov wrote:
>Hello guys
>
>I'm new in this list and may be what I'll say is an old grievous story 
>discussed
>many times in this list, but:
>Many people use Server Side Include in their work, either in pure SHTML or ASP
>or whatever. That would be AWESOME if Tidy could parse included files.
>My understanding is that it should not modify included files or, at least,
>that should be an option. Good example of what i'm talking about is a
>standard header and footer for all pages, looking like following:
>
>ssiStdHeader.txt:
><HEAD>
><TITLE>Our beautiful site</TITLE>
></HEAD>
><BODY>
>
>ssiStdFooter.txt:
><P>Copyright (C) 2000 SomeCompany Ltd.</P>
></BODY>
>
>SomeFile.shtm:
><!--#INCLUDE VIRTUAL="ssiStdHeader.txt"-->
><H1>Welcome to SomeCompany Ltd. Corporate site !!!</H1>
><!--#INCLUDE VIRTUAL="ssiStdFooter.txt"-->
>
>When tidy parses this file you know it adds empty <TITLE> at the beginning 
>and </BODY> at the end of file.
>So I have to remove them each time I clean up my HTML with Tidy. I did not 
>look at Tidy sources yet, but
>I guess that would be very easy to implement SSI support in it.
>
>Any opinions how to do that without modifying Tidy ?
>
>Egor A. Shokurov
>Senior Software Developer
>Netreflector.com Inc.
>email: yeghors@netreflector.com
>Phone: int+7-095-532-89-65

--
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/
Received on Wednesday, 10 May 2000 05:53:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT