Re: Parse tree feature gone in v0.7.4?

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