From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William F Hammond Newsgroups: gmane.emacs.help Subject: Re: sgml-validate Date: Sat, 12 Feb 2011 19:39:23 -0500 Organization: Dept of Math & Stat, Univ at Albany (SUNY), Albany, NY Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297608908 10897 80.91.229.12 (13 Feb 2011 14:55:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2011 14:55:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 13 15:55:04 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PodLr-0001wX-1M for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Feb 2011 15:55:03 +0100 Original-Received: from localhost ([127.0.0.1]:60156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PodLq-00030R-DS for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Feb 2011 09:55:02 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.universityofalbany!news.posted.universityofalbany.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 12 Feb 2011 18:39:24 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (usg-unix-v) Cancel-Lock: sha1:8Lyr63URpKef6FcQ2AZCEGy9dzc= Original-Lines: 45 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 169.226.140.28 Original-X-Trace: sv3-Kge7fMlSqFFbUYb+AsYtZjmcjMKwenMF6yb52GjT9kWrWt+T2xWp4CrpEg0P7V1AklDLAT+vBSHTply!Gt9C1Thfz8vW0cpXIaGN/U9s2nQH99fLnZi7gnRnsWopQ8vbKx/FmCiga+8YpkjDEjN5cMx23LXS!0cfqeyI8oQhWoRw= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2919 Original-Xref: usenet.stanford.edu gnu.emacs.help:184923 X-Mailman-Approved-At: Sun, 13 Feb 2011 09:53:57 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79100 Archived-At: >> When I tried M-x sgml-validate, it offers to run >> nsgmls -s myfile.html >> >> I don't have nsgmls so looked around and found >> opensp providing onsgmls and a gentoo bug report claimed >> a symlink nsgmls --> onsgmls. >> >> Emerged opensp and now have onsgmls. >> >> But onsgmls -s myfile.html >> just hangs and uses no CPU time. >> >> onsgmls claims it will validate "the SGML document whose document entity is >> specified by the system identifiers SYSID..." so perhaps my error is in >> supplying just a file name. What is needed for a valid SYSID? > AFAIU that's rather an sgml-issue. > > Seems the command onsgmls fails, which should happen too for the very > reasons also from the command line outside Emacs. > > BTW I use `xmllint' for validation, may be it's ok for your purposes too. onsgmls is a very reliable tool. In general, however, it requires complicated command lines. AIUI "xmllint" works only on xml files, and, therefore, probably won't work with most extant html files, even those self-identified as the xml form of html, which commonly are not "well-formed xml". (Xml well-formedness is easily and quickly checked using James Clark's "xmlwf" that is included with "expat" distributions.) If your html is dependably well-formed xml, then take your questions to comp.text.xml. Otherwise maybe take them to comp.infosystems.www.authoring.html unless you really, really want a full understanding of the sgml background for html in which case ask in the rather quiet group comp.text.sgml. Furthermore, be aware that the proposal for future html5 served as "text/html" falls outside of all classical sgml/xml validation paradigms. -- Bill