Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Validating HTML

 [1/6] from: jmalv:h:otmail at: 25-Feb-2002 13:58


Does anybody have some simple code to validate HTML pages, mainly proper tag nesting Thanks

 [2/6] from: al:bri:xtra at: 26-Feb-2002 17:44


JM wrote:
> Does anybody have some simple code to validate HTML pages, mainly proper
tag nesting? I don't. But I do have my HTML dialect written in Rebol, that way I don't have to worry about getting the end tag right. It's available on my site. Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [3/6] from: joel:neely:fedex at: 26-Feb-2002 6:48


Hi, JM, http://tidy.sourceforge.net/ has been around for quite some time. Unless you have an absolute need to embed the cleanup code in a larger function, this would save some wheel-reinventing... -jn-
> JM wrote: > > Does anybody have some simple code to validate HTML pages, mainly proper > tag nesting? >
-- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;

 [4/6] from: jmalv:h:otmail at: 26-Feb-2002 19:56


Thanks Joel. I actually was looking for Rebol code but it looks like using Tidy with Rebol/Command is a quicker solution ! ( I was planning to write some simple code; I even read your article 'Recursion, Iteration and Algebra' to get some ideas )

 [5/6] from: jmalv:h:otmail at: 26-Feb-2002 20:11


I looked at your HTML dialect plus another one available in a Rebsite. I want to be able to validate any HTML written in Rebol or not and R should be great for such a job but looking at how much work is in Tidy it is not worth it reinventing the wheel .. As far as HTML dialects goes, I am not convinced they save lots of time vs using tag blocks or strings Jose
>From: "Andrew Martin" <[Al--Bri--xtra--co--nz]> >Reply-To: [rebol-list--rebol--com]
<<quoted lines omitted: 14>>
>[rebol-request--rebol--com] with "unsubscribe" in the >subject, without the quotes.
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

 [6/6] from: al:bri:xtra at: 27-Feb-2002 17:09


Jose wrote:
> As far as HTML dialects goes, I am not convinced they save lots of time vs
using tag blocks or strings My HTML dialect is best used for wrapping around my eText dialect, which is used repeatedly in my Site creation dialect (which works of files and directories). It's basically a matter of using the right tools for all the jobs. Andrew Martin ICQ: 26227169 http://valley.150m.com/

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted