Re: --->Please make sure you specified the DOCTYPE properly

From: Terje Bless (link@pobox.com)
Date: Fri, Jul 27 2001

  • Next message: Terje Bless: "Re: charset parameter"

    Date: Fri, 27 Jul 2001 10:28:32 +0200
    From: Terje Bless <link@pobox.com>
    To: Robert.W.Blackburn@apcc.com
    cc: www-validator@w3.org
    Message-ID: <20010727102956-r01010700-3cdb3e82-0910-010c@192.168.1.6>
    Subject: Re: --->Please make sure you specified the DOCTYPE properly
    
    On 26.07.01 at 17:00, Robert.W.Blackburn@apcc.com wrote:
    
    >     Uh oh! I got the following unknown error: D:
    >     \webroot\validate\sp\bin\nsgmls.exe:0:157:96:E: invalid comment
    >     declaration: found name character outside comment but inside comment
    >     declaration Please make sure you specified the DOCTYPE properly!
    
    As others have said, it's very difficult to diagnose this problem without
    seeing the document in question, but judging from that error message you
    have something like the following in the input:
    
    <!-- comment #1 -- garbage -- comment #2 -->
    
    Comments in SGML are tricky beasts. The full set of comments must be
    cntained within "<!" and ">". In addition, each comment (there can be more
    then one) must be delimited on each side with "--".
    
    <!
      -- comment #1 --
         garbage
      -- comment #2 --
    >
    
    The string "garbage" is _not_ a comment in this case, and would probably
    generate the error message you see. Complex interactions of comments and
    other elements (not to mention scripts!) may confuse this issue
    considerably.
    
    Please try to reduce this to the smallest example that will generate that
    error message and post it to the list. Hopefully we'll be able to figure
    out what's going on, how to fix it, and maybe add a better error
    explanation for this error in future versions.
    
    
    
    (
      BTW, does this mean your UPS Web Management interface will be
      valid HTML now? -link, happy user of about 50 Smart-UPS 1000. :-)
    )