RE: [niso-sts] STS validation warnings

Subject: RE: [niso-sts] STS validation warnings
From: Dan Berger <dberger@xxxxxxxx>
Date: Tue, 30 Jan 2018 22:52:44 -0500
Thanks Bruce. My XML file does have the first line in it, but not the second. When I added that one, the W3 validator choked on it, giving this error message:

Fatal Error: cannot find "NISO-STS-extended-1-mathml2.dtd"; tried
I could not parse this document, because it makes reference to a system-specific file instead of using a well-known public identifier to specify the type of markup being used.
You should place a DOCTYPE declaration as the very first thing in your HTML document

With the addition of the <!DOCTYPE ... > my XML looks like this in lines 1-3, with the <standard> mode closing at the end of the doccument.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE standard SYSTEM "NISO-STS-extended-1-mathml2.dtd">
<standard dtd-version="1.0" xml:lang="en" xmlns:xlink="http://www.w3.org/1999/xlink";>
...
</standard>

Any other thoughts on how this is formatted?
Thanks!

Dan



From: Bruce Rosenblum bruce@xxxxxxxxx [mailto:niso-sts-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, January 30, 2018 6:46 AM
To: niso-sts-list@xxxxxxxxxxxxxxxxxxxxxx; niso-sts-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [niso-sts] STS validation warnings

Hi Dan,

Chances are the XML file you tested is missing these two lines at the very top:

        <?xml version="1.0" encoding="UTF-8"?>
         <!DOCTYPE standard SYSTEM "NISO-STS-extended-1-mathml2.dtd">

Without this information, it's not likely that any other validation information from the W3 XML validator is useful or correct, so adding these lines may highlight further problems.

Best regards,

Bruce

At 10:40 PM 1/29/2018, Dan Berger mailto:dberger@xxxxxxxx wrote:

Hello,

I ran a standard in NISO STS through the W3 XML validator and it came back valid except for these two warning. Can someone please advise on how to fix these or at least address them? Having worked with XML before I understand the warnings, but don't know how to address them with this DTD. Thanks.

1.  Missing "charset" attribute for "text/xml" document.
The HTTP Content-Type header (text/xml) sent by your web browser (Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36) did not contain a "charset" parameter, but the Content-Type was one of the XML text/* sub-types.
The relevant specification (RFC 3023) specifies a strong default of "us-ascii" for such documents so we will use this value regardless of any encoding you may have indicated elsewhere.
If you would like to use a different encoding, you should arrange to have your browser send this new encoding information.
2.  No DOCTYPE found! Checking XML syntax only.
The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax, or that your XML document is not using a DOCTYPE Declaration.
Validation of the document has been skipped, and a simple check of the well-formedness of the XML syntax has been performed instead.

Daniel Berger
Senior Manager of Production
American Water Works Association
6666 West Quincy Ave., Denver, CO 80235
Direct 303.347.6264 | Mobile 406.370.9095
mailto:dberger@xxxxxxxx | http://www.awwa.org/



________________________________
This communication is the property of the American Water Works Association and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply email and destroy all copies of the communication and any attachments.

American Water Works Association
Dedicated to the World's Most Important Resource ®

-------------------------------------------------------------------
This email message and any attachments are confidential. If you are not the intended recipient, please immediately reply to the sender or call 617-932-1932 and delete the message from your email system. Thank you.
-------------------------------------------------------------------
Bruce D. Rosenblum
Inera Inc.
19 Flett Road, Belmont, MA 02478
phone: 617-932-1932 (office)
email: mailto:bruce@xxxxxxxxx
web: http://www.inera.com/ | http://www.edifix.com/twitter:  @eXtyles | @edifix
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
You are subscribed as mailto:dberger@xxxxxxxx to NISO STS Discussion by http://www.mulberrytech.com/
http://lists.mulberrytech.com/unsub/niso-sts-list/3101671 (mailto:niso-sts-list-unsub@xxxxxxxxxxxxxxxxxxxxxx?subject=remove)


________________________________
This communication is the property of the American Water Works Association and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply email and destroy all copies of the communication and any attachments.

American Water Works Association
Dedicated to the World's Most Important Resource ®


Current Thread