W3C home > Mailing lists > Public > www-validator@w3.org > November 2006

Re: Parse tree feature gone in v0.7.4?

From: Christoph Schneegans <Christoph@Schneegans.de>
Date: Mon, 27 Nov 2006 19:07:26 GMT
To: <www-validator@w3.org>
Message-ID: <ekfghu.868.1@mail.christoph.schneegans.de>

olivier Thereaux wrote:

> The parse tree is in the same position, except that its audience is
> more limited (don't get me wrong, I like the feature and used to use
> it, but I don't think more than a handful of people use it, and they
> could probably do without it).

Well, the parse tree feature was essential for me to decipher
shorthand markup. But I just figured out how to run SP locally, using
the SGML declaration file from <http://www.w3.org/TR/html401/html40.zip>.

  bin\nsgmls.exe -c pubtext\HTML401.soc | find /v "IMPLIED"

will process input documents such as

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  <>
  <title//
  <p ltr<span></span</p>
  </>

and output the parse tree as follows:

  (HTML
  (HEAD
  (TITLE
  )TITLE
  )HEAD
  (BODY
  ADIR TOKEN LTR
  (P
  (SPAN
  )SPAN
  )P
  )BODY
  )HTML
  C

-- 
<http://schneegans.de/sv/> - XML Schema Validator                    |
<http://schneegans.de/xp/> - XHTML Proxy                             |
Received on Monday, 27 November 2006 19:37:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC