Source Code Cross Referenced for XMLMessages.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » xerces » utils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Rimfaxe Web Server » org.apache.xerces.utils 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * The Apache Software License, Version 1.1
0003:         *
0004:         *
0005:         * Copyright (c) 1999 The Apache Software Foundation.  All rights 
0006:         * reserved.
0007:         *
0008:         * Redistribution and use in source and binary forms, with or without
0009:         * modification, are permitted provided that the following conditions
0010:         * are met:
0011:         *
0012:         * 1. Redistributions of source code must retain the above copyright
0013:         *    notice, this list of conditions and the following disclaimer. 
0014:         *
0015:         * 2. Redistributions in binary form must reproduce the above copyright
0016:         *    notice, this list of conditions and the following disclaimer in
0017:         *    the documentation and/or other materials provided with the
0018:         *    distribution.
0019:         *
0020:         * 3. The end-user documentation included with the redistribution,
0021:         *    if any, must include the following acknowledgment:  
0022:         *       "This product includes software developed by the
0023:         *        Apache Software Foundation (http://www.apache.org/)."
0024:         *    Alternately, this acknowledgment may appear in the software itself,
0025:         *    if and wherever such third-party acknowledgments normally appear.
0026:         *
0027:         * 4. The names "Xerces" and "Apache Software Foundation" must
0028:         *    not be used to endorse or promote products derived from this
0029:         *    software without prior written permission. For written 
0030:         *    permission, please contact apache@apache.org.
0031:         *
0032:         * 5. Products derived from this software may not be called "Apache",
0033:         *    nor may "Apache" appear in their name, without prior written
0034:         *    permission of the Apache Software Foundation.
0035:         *
0036:         * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
0037:         * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
0038:         * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0039:         * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
0040:         * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0041:         * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0042:         * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
0043:         * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0044:         * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
0045:         * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
0046:         * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
0047:         * SUCH DAMAGE.
0048:         * ====================================================================
0049:         *
0050:         * This software consists of voluntary contributions made by many
0051:         * individuals on behalf of the Apache Software Foundation and was
0052:         * originally based on software copyright (c) 1999, International
0053:         * Business Machines, Inc., http://www.apache.org.  For more
0054:         * information on the Apache Software Foundation, please see
0055:         * <http://www.apache.org/>.
0056:         */
0057:
0058:        package org.apache.xerces.utils;
0059:
0060:        import java.util.Locale;
0061:        import java.util.ResourceBundle;
0062:        import java.util.ListResourceBundle;
0063:
0064:        /**
0065:         * XMLMessages provides error messages for the XML 1.0 Recommendation and for 
0066:         * the Namespaces Recommendation
0067:         *
0068:         */
0069:        public class XMLMessages implements  XMLMessageProvider {
0070:            /**
0071:             * The domain of messages concerning the XML 1.0 specification.
0072:             */
0073:            public static final String XML_DOMAIN = "http://www.w3.org/TR/1998/REC-xml-19980210";
0074:            public static final String XMLNS_DOMAIN = "http://www.w3.org/TR/1999/REC-xml-names-19990114";
0075:
0076:            /**
0077:             *
0078:             */
0079:            public void setLocale(Locale locale) {
0080:                fLocale = locale;
0081:            }
0082:
0083:            /**
0084:             *
0085:             */
0086:            public Locale getLocale() {
0087:                return fLocale;
0088:            }
0089:
0090:            /**
0091:             * Creates a message from the specified key and replacement
0092:             * arguments, localized to the given locale.
0093:             *
0094:             * @param locale    The requested locale of the message to be
0095:             *                  created.
0096:             * @param key       The key for the message text.
0097:             * @param args      The arguments to be used as replacement text
0098:             *                  in the message created.
0099:             */
0100:            public String createMessage(Locale locale, int majorCode,
0101:                    int minorCode, Object args[]) {
0102:                boolean throwex = false;
0103:                if (fResourceBundle == null || locale != fLocale) {
0104:                    if (locale != null)
0105:                        fResourceBundle = ListResourceBundle.getBundle(
0106:                                "org.apache.xerces.msg.XMLMessages", locale);
0107:                    if (fResourceBundle == null)
0108:                        fResourceBundle = ListResourceBundle
0109:                                .getBundle("org.apache.xerces.msg.XMLMessages");
0110:                }
0111:                if (majorCode < 0 || majorCode >= fgMessageKeys.length - 1) {
0112:                    majorCode = MSG_BAD_MAJORCODE;
0113:                    throwex = true;
0114:                }
0115:                String msgKey = fgMessageKeys[majorCode];
0116:                String msg = fResourceBundle.getString(msgKey);
0117:                if (args != null) {
0118:                    try {
0119:                        msg = java.text.MessageFormat.format(msg, args);
0120:                    } catch (Exception e) {
0121:                        msg = fResourceBundle
0122:                                .getString(fgMessageKeys[MSG_FORMAT_FAILURE]);
0123:                        msg += " " + fResourceBundle.getString(msgKey);
0124:                    }
0125:                }
0126:                /*
0127:                 if (minorCode > 0 && minorCode < fgConstraints.length - 1) {
0128:                 Constraint c = fgConstraints[minorCode];
0129:                 String prefix = "{ " + c.sections;
0130:                 if (c.productions != null && c.productions.length() != 0)
0131:                 prefix = prefix + " " + c.productions;
0132:                 msg = prefix + " } " + msg;
0133:                 }
0134:                 */
0135:                if (throwex) {
0136:                    throw new RuntimeException(msg);
0137:                }
0138:                return msg;
0139:            }
0140:
0141:            //
0142:            //
0143:            //
0144:            private Locale fLocale = null;
0145:            private ResourceBundle fResourceBundle = null;
0146:            //
0147:            //
0148:            //
0149:            public static final int MSG_BAD_MAJORCODE = 0, //  majorCode parameter to createMessage was out of bounds
0150:                    MSG_FORMAT_FAILURE = 1, //  exception thrown during messageFormat call
0151:                    MSG_LESSTHAN_IN_ATTVALUE = 2, //  '<' found in attribute value
0152:                    MSG_ROOT_ELEMENT_TYPE = 3, //  document root element type does not match the doctypedecl Name
0153:                    MSG_IDREFS_INVALID = 4, //  attributes of type IDREFS must match the Names production
0154:                    MSG_NMTOKENS_INVALID = 5, //  attributes of type NMTOKENS must match the Nmtokens production
0155:                    MSG_RESERVED_PITARGET = 6, //  PITarget matching [Xx][Mm][Ll] is reserved
0156:                    MSG_SPACE_REQUIRED_IN_PI = 7, //  white space is required between PITarget and data
0157:                    MSG_INVALID_CHAR_IN_PI = 8, //  invalid character found in PI data
0158:                    MSG_DASH_DASH_IN_COMMENT = 9, //  the string "--" in not allowed in comments
0159:                    MSG_INVALID_CHAR_IN_COMMENT = 10, //  invalid character found in comment
0160:                    MSG_INVALID_CHARREF = 11, //  invalid value for character reference
0161:                    MSG_INVALID_CHAR_IN_ATTVALUE = 12, //  invalid character found in attribute value
0162:                    MSG_QUOTE_REQUIRED_IN_ATTVALUE = 13, //  attribute value was not a quoted string
0163:                    MSG_NAME_REQUIRED_IN_REFERENCE = 14, //  a Name did not follow the '&' in the entity reference
0164:                    MSG_SEMICOLON_REQUIRED_IN_REFERENCE = 15, //  a ';' did not follow the Name in the entity reference
0165:                    MSG_DIGIT_REQUIRED_IN_CHARREF = 16, //  a decimal representation did not follow the "&#" in the character reference
0166:                    MSG_HEXDIGIT_REQUIRED_IN_CHARREF = 17, //  a hexadecimal representation did not follow the "&#x" in the character reference
0167:                    MSG_SEMICOLON_REQUIRED_IN_CHARREF = 18, //  the ';' delimiter was not found in the character reference
0168:                    MSG_QUOTE_REQUIRED_IN_SYSTEMID = 19, //  system identifier was not a quoted string
0169:                    MSG_INVALID_CHAR_IN_SYSTEMID = 20, //  invalid character found in system identifier
0170:                    MSG_QUOTE_REQUIRED_IN_PUBLICID = 21, //  public identifier was not a quoted string
0171:                    MSG_INVALID_CHAR_IN_PUBLICID = 22, //  invalid character found in public identifier
0172:                    MSG_INCLUDESECT_UNTERMINATED = 23, //  includeSect must end with "]]>"
0173:                    MSG_IGNORESECT_UNTERMINATED = 24, //  ignoreSect must end with "]]>"
0174:                    MSG_INVALID_CHAR_IN_IGNORESECT = 25, //  invalid character found in ignoreSect
0175:                    MSG_ELEMENT_UNTERMINATED = 26, //  element type not followed by attributes, ">" or "/>"
0176:                    MSG_EQ_REQUIRED_IN_ATTRIBUTE = 27, //  attribute name not followed by "="
0177:                    MSG_ATTRIBUTE_NOT_UNIQUE = 28, //  specified attributes must be unique within the element tag
0178:                    MSG_ENCODINGDECL_REQUIRED = 29, //  the "encoding" declaration is required in a text declaration
0179:                    MSG_VERSIONINFO_REQUIRED = 30, //  the "version" is required in the XML declaration
0180:                    MSG_EQ_REQUIRED_IN_XMLDECL = 31, //  the '=' character must follow \"{0}\" in the XML declaration
0181:                    MSG_EQ_REQUIRED_IN_TEXTDECL = 32, //  the '=' character must follow \"{0}\" in the text declaration
0182:                    MSG_QUOTE_REQUIRED_IN_XMLDECL = 33, //  quote missing in the XML declaration
0183:                    MSG_QUOTE_REQUIRED_IN_TEXTDECL = 34, //  quote missing in the text declaration
0184:                    MSG_INVALID_CHAR_IN_XMLDECL = 35, //  invalid character found in the XML declaration
0185:                    MSG_INVALID_CHAR_IN_TEXTDECL = 36, //  invalid character found in the text declaration
0186:                    MSG_VERSIONINFO_INVALID = 37, //  Invalid XML version format, \"{0}\"
0187:                    MSG_VERSION_NOT_SUPPORTED = 38, //  unsupported XML version
0188:                    MSG_SPACE_REQUIRED_IN_TEXTDECL = 39, //  white space required between version and encoding
0189:                    MSG_ENCODINGDECL_INVALID = 40, //  invalid encoding name
0190:                    MSG_SDDECL_INVALID = 41, //  invalid \"standalone\" attribute value. Must be "yes" or "no"
0191:                    MSG_XMLDECL_UNTERMINATED = 42, //  "\"?>\" expected.
0192:                    MSG_TEXTDECL_UNTERMINATED = 43, //  "\"?>\" expected.
0193:                    MSG_INVALID_CHAR_IN_INTERNAL_SUBSET = 44, //  invalid character found in the internal subset of the dtd
0194:                    MSG_INVALID_CHAR_IN_EXTERNAL_SUBSET = 45, //  invalid character found in the external subset of the dtd
0195:                    MSG_INVALID_CHAR_IN_ENTITYVALUE = 46, //  invalid character found in entity value
0196:                    MSG_MIXED_CONTENT_UNTERMINATED = 47, //  mixed content model with element types must end with ")*"
0197:                    MSG_NAME_REQUIRED_IN_PEREFERENCE = 48, //  a Name did not follow the '&' in the parameter entity reference
0198:                    MSG_SEMICOLON_REQUIRED_IN_PEREFERENCE = 49, //  a ';' did not follow the Name in the parameter entity reference
0199:                    MSG_EXTERNALID_REQUIRED = 50, //  an external id did not begin with SYSTEM or PUBLIC
0200:                    MSG_PEREFERENCE_WITHIN_MARKUP = 51, //  a PEReference is not allowed within markup in the internal subset of the DTD
0201:                    MSG_INVALID_CHAR_IN_PROLOG = 52, //  invalid character found in prolog
0202:                    MSG_INVALID_CHAR_IN_MISC = 53, //  invalid character found in trailing misc
0203:                    MSG_INVALID_CHAR_IN_CDSECT = 54, //  invalid character found in cdata section
0204:                    MSG_INVALID_CHAR_IN_CONTENT = 55, //  invalid character found in content
0205:                    MSG_ETAG_REQUIRED = 56, //  end of input before end of element content
0206:                    MSG_ETAG_UNTERMINATED = 57, //  the end-tag did not end with a '>'
0207:                    MSG_ATTRIBUTE_NAME_REQUIRED_IN_ATTDEF = 58, //  attribute name expected
0208:                    MSG_ATTTYPE_REQUIRED_IN_ATTDEF = 59, //  attribute type expected
0209:                    MSG_PUBIDCHAR_ILLEGAL = 60, //  illegal character found in public identifier
0210:                    MSG_ENCODING_NOT_SUPPORTED = 61, //  encoding is not supported
0211:                    MSG_ENTITY_NOT_DECLARED = 62, //  entity was not declared
0212:                    MSG_REFERENCE_TO_UNPARSED_ENTITY = 63,
0213:                    MSG_REFERENCE_TO_EXTERNAL_ENTITY = 64,
0214:                    MSG_AVAILABLE0 = 65,
0215:                    MSG_CDSECT_UNTERMINATED = 66, //  CDATA sections must end with "]]>"
0216:                    MSG_DUPLICATE_TYPE_IN_MIXED_CONTENT = 67,
0217:                    MSG_ELEMENT_ENTITY_MISMATCH = 68,
0218:                    MSG_ID_DEFAULT_TYPE_INVALID = 69,
0219:                    MSG_ENCODING_REQUIRED = 70,
0220:                    MSG_RECURSIVE_REFERENCE = 71,
0221:                    MSG_RECURSIVE_PEREFERENCE = 72,
0222:                    MSG_IMPROPER_DECLARATION_NESTING = 73, // "Parameter entity replacement text must include declarations or proper pairs of ''<'' and ''>''. (entity: \"%{0};\")"
0223:                    MSG_IMPROPER_GROUP_NESTING = 74, // "Parameter entity replacement text must include proper pairs of parentheses in content model, \"%{0};\"."
0224:                    MSG_ID_INVALID = 75,
0225:                    MSG_ID_NOT_UNIQUE = 76,
0226:                    MSG_IDREF_INVALID = 77,
0227:                    MSG_NMTOKEN_INVALID = 78,
0228:                    MSG_ENTITY_INVALID = 79,
0229:                    MSG_ENTITIES_INVALID = 80,
0230:                    MSG_ELEMENT_WITH_ID_REQUIRED = 81,
0231:                    MSG_ATTRIBUTE_NOT_DECLARED = 82,
0232:                    MSG_ELEMENT_NOT_DECLARED = 83,
0233:                    MSG_AVAILABLE1 = 84,
0234:                    MSG_DUPLICATE_ATTDEF = 85,
0235:                    MSG_MORE_THAN_ONE_ID_ATTRIBUTE = 86,
0236:                    MSG_CONTENT_INVALID = 87,
0237:                    MSG_CONTENT_INCOMPLETE = 88,
0238:                    MSG_ELEMENT_ALREADY_DECLARED = 89,
0239:                    MSG_ATTRIBUTE_VALUE_NOT_IN_LIST = 90,
0240:                    MSG_AVAILABLE2 = 91,
0241:                    MSG_UNDECLARED_ELEMENT_IN_CONTENTSPEC = 92,
0242:                    MSG_FIXED_ATTVALUE_INVALID = 93,
0243:                    MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED = 94,
0244:                    MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED = 95,
0245:                    MSG_AVAILABLE3 = 96,
0246:                    MSG_AVAILABLE4 = 97,
0247:                    MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN = 98,
0248:                    MSG_AVAILABLE5 = 99,
0249:                    MSG_SYSTEMID_UNTERMINATED = 100,
0250:                    MSG_PUBLICID_UNTERMINATED = 101,
0251:                    MSG_EXTERNAL_ENTITY_NOT_PERMITTED = 102,
0252:                    MSG_AVAILABLE6 = 103,
0253:                    MSG_XMLDECL_MUST_BE_FIRST = 104,
0254:                    MSG_TEXTDECL_MUST_BE_FIRST = 105,
0255:                    MSG_ELEMENTDECL_UNTERMINATED = 106,
0256:                    MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_PEDECL = 107,
0257:                    MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_ENTITYDECL = 108,
0258:                    MSG_SPACE_REQUIRED_BEFORE_PERCENT_IN_PEDECL = 109,
0259:                    MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL = 110,
0260:                    MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL = 111,
0261:                    MSG_ENTITYDECL_UNTERMINATED = 112,
0262:                    MSG_NOTATION_NAME_REQUIRED_FOR_UNPARSED_ENTITYDECL = 113,
0263:                    MSG_NOTATION_NOT_DECLARED_FOR_UNPARSED_ENTITYDECL = 114,
0264:                    MSG_NAME_REQUIRED_IN_NOTATIONTYPE = 115,
0265:                    MSG_NMTOKEN_REQUIRED_IN_ENUMERATION = 116,
0266:                    MSG_NOTATION_NOT_DECLARED_FOR_NOTATIONTYPE_ATTRIBUTE = 117,
0267:                    MSG_NOTATIONTYPE_UNTERMINATED = 118,
0268:                    MSG_ENUMERATION_UNTERMINATED = 119,
0269:                    MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL = 120,
0270:                    MSG_MORE_THAN_ONE_NOTATION_ATTRIBUTE = 121,
0271:                    MSG_NOTATIONDECL_UNTERMINATED = 122,
0272:                    MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE = 123,
0273:                    MSG_CDEND_IN_CONTENT = 124,
0274:                    MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL = 125,
0275:                    MSG_TWO_COLONS_IN_QNAME = 126,
0276:                    MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT = 127,
0277:                    MSG_MARKUP_NOT_RECOGNIZED_IN_MISC = 128,
0278:                    MSG_MARKUP_NOT_RECOGNIZED_IN_PROLOG = 129,
0279:                    MSG_OPEN_PAREN_REQUIRED_IN_NOTATIONTYPE = 130,
0280:                    MSG_PITARGET_REQUIRED = 131,
0281:                    MSG_REFERENCE_TO_EXTERNALLY_DECLARED_ENTITY_WHEN_STANDALONE = 132,
0282:                    MSG_URI_FRAGMENT_IN_SYSTEMID = 133,
0283:                    MSG_ROOT_ELEMENT_REQUIRED = 134,
0284:                    MSG_SPACE_REQUIRED_AFTER_FIXED_IN_DEFAULTDECL = 135,
0285:                    MSG_SPACE_REQUIRED_AFTER_NOTATION_IN_NOTATIONTYPE = 136,
0286:                    MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL = 137,
0287:                    MSG_SPACE_REQUIRED_BEFORE_ATTRIBUTE_NAME_IN_ATTDEF = 138,
0288:                    MSG_SPACE_REQUIRED_BEFORE_ATTTYPE_IN_ATTDEF = 139,
0289:                    MSG_SPACE_REQUIRED_BEFORE_DEFAULTDECL_IN_ATTDEF = 140,
0290:                    MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ATTLISTDECL = 141,
0291:                    MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_NOTATIONDECL = 142,
0292:                    MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE = 143,
0293:                    MSG_XML_SPACE_DECLARATION_ILLEGAL = 144,
0294:                    MSG_CLOSE_PAREN_REQUIRED_IN_MIXED = 145,
0295:                    MSG_CONTENTSPEC_REQUIRED_IN_ELEMENTDECL = 146,
0296:                    MSG_DOCTYPEDECL_UNTERMINATED = 147,
0297:                    MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL = 148,
0298:                    MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT = 149,
0299:                    MSG_MARKUP_NOT_RECOGNIZED_IN_DTD = 150,
0300:                    MSG_ATTRIBUTE_VALUE_UNTERMINATED = 151,
0301:                    MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN = 152,
0302:                    MSG_ROOT_ELEMENT_TYPE_REQUIRED = 153,
0303:                    MSG_SPACE_REQUIRED_AFTER_PUBIDLITERAL_IN_EXTERNALID = 154,
0304:                    MSG_SPACE_REQUIRED_BEFORE_CONTENTSPEC_IN_ELEMENTDECL = 155,
0305:                    MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ELEMENTDECL = 156,
0306:                    MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_UNPARSED_ENTITYDECL = 157,
0307:                    MSG_SPACE_REQUIRED_BEFORE_PUBIDLITERAL_IN_EXTERNALID = 158,
0308:                    MSG_SPACE_REQUIRED_BEFORE_ROOT_ELEMENT_TYPE_IN_DOCTYPEDECL = 159,
0309:                    MSG_SPACE_REQUIRED_BEFORE_SYSTEMLITERAL_IN_EXTERNALID = 160,
0310:                    MSG_REFERENCE_NOT_IN_ONE_ENTITY = 161,
0311:                    MSG_COMMENT_NOT_IN_ONE_ENTITY = 162,
0312:                    MSG_COMMENT_UNTERMINATED = 163,
0313:                    MSG_PI_UNTERMINATED = 164,
0314:                    MSG_PI_NOT_IN_ONE_ENTITY = 165,
0315:                    MSG_REFERENCE_UNTERMINATED = 166,
0316:                    MSG_PREFIX_DECLARED = 167,
0317:                    MSG_ATT_DEFAULT_INVALID = 168,
0318:                    MSG_GENERIC_SCHEMA_ERROR = 169,
0319:                    MSG_DTD_SCHEMA_ERROR = 170,
0320:                    MSG_NAMESPACE_NAME_EMPTY = 171,
0321:
0322:                    // ...
0323:                    MSG_MAX_CODE = 200;
0324:
0325:            private static final String[] fgMessageKeys = {
0326:                    "BadMajorCode", //   0, "The majorCode parameter to createMessage was out of bounds."
0327:                    "FormatFailed", //   1, "An internal error occurred while formatting the following message:"
0328:                    "LessthanInAttValue", //   2, "The attribute value must not contain the '<' character."
0329:                    "RootElementTypeMustMatchDoctypedecl", //   3, "The document root element type \"{1}\" must match the document type declaration name \"{0}\"."
0330:                    "IDREFSInvalid", //   4, "Attribute value \"{1}\" of type IDREFS must be one or more names."
0331:                    "NMTOKENSInvalid", //   5, "Attribute value \"{1}\" of type NMTOKENS must contain one or more name tokens."
0332:                    "ReservedPITarget", //   6, "The processing instruction target matching \"[xX][mM][lL]\" is not allowed."
0333:                    "SpaceRequiredInPI", //   7, "White space is required between the processing instruction target and data."
0334:                    "InvalidCharInPI", //   8, "An invalid XML character (Unicode: 0x{0}) was found in the processing instruction."
0335:                    "DashDashInComment", //   9, "The string \"--\" is not permitted within comments."
0336:                    "InvalidCharInComment", //  10, "An invalid XML character (Unicode: 0x{0}) was found in the comment."
0337:                    "InvalidCharRef", //  11, "Character reference \"&#{0}\" is an invalid XML character."
0338:                    "InvalidCharInAttValue", //  12, "An invalid XML character (Unicode: 0x{0}) was found in the attribute value."
0339:                    "QuoteRequiredInAttValue", //  13, "The attribute value must begin with either a single or double quote character."
0340:                    "NameRequiredInReference", //  14, "The entity name must immediately follow the '&' in the entity reference."
0341:                    "SemicolonRequiredInReference", //  15, "The entity reference must end with the ';' delimiter."
0342:                    "DigitRequiredInCharRef", //  16, "A decimal representation must immediately follow the \"&#\" in the character reference."
0343:                    "HexdigitRequiredInCharRef", //  17, "A hexadecimal representation must immediately follow the \"&#x\" in the character reference."
0344:                    "SemicolonRequiredInCharRef", //  18, "The character reference must end with the ';' delimiter."
0345:                    "QuoteRequiredInSystemID", //  19, "The system identifier must begin with either a single or double quote character."
0346:                    "InvalidCharInSystemID", //  20, "An invalid XML character (Unicode: 0x{0}) was found in the system identifier."
0347:                    "QuoteRequiredInPublicID", //  21, "The public identifier must begin with either a single or double quote character."
0348:                    "InvalidCharInPublicID", //  22, "An invalid XML character (Unicode: 0x{0}) was found in the public identifier."
0349:                    "IncludeSectUnterminated", //  23, "The included conditional section must end with \"]]>\"."
0350:                    "IgnoreSectUnterminated", //  24, "The excluded conditional section must end with \"]]>\"."
0351:                    "InvalidCharInIgnoreSect", //  25, "An invalid XML character (Unicode: 0x{0}) was found in the excluded conditional section."
0352:                    "ElementUnterminated", //  26, "Element type \"{0}\" must be followed by either attribute specifications, \">\" or \"/>\"."
0353:                    "EqRequiredInAttribute", //  27, "Attribute name \"{1}\" must be followed by the '=' character."
0354:                    "AttributeNotUnique", //  28, "Attribute \"{1}\" was already specified for element \"{0}\"."
0355:                    "EncodingDeclRequired", //  29, "The encoding declaration is required within a text declaration."
0356:                    "VersionInfoRequired", //  30, "The version is required within an XML declaration."
0357:                    "EqRequiredInXMLDecl", //  31, "The '=' character must follow \"{0}\" in the XML declaration."
0358:                    "EqRequiredInTextDecl", //  32, "The '=' character must follow \"{0}\" in the text declaration."
0359:                    "QuoteRequiredInXMLDecl", //  33, "The value following \"{0}\" in an XML declaration must be a quoted string."
0360:                    "QuoteRequiredInTextDecl", //  34, "The value following \"{0}\" in a text declaration must be a quoted string."
0361:                    "InvalidCharInXMLDecl", //  35, "An invalid XML character (Unicode: 0x{0}) was found in the XML declaration."
0362:                    "InvalidCharInTextDecl", //  36, "An invalid XML character (Unicode: 0x{0}) was found in the text declaration."
0363:                    "VersionInfoInvalid", //  37, "Invalid version \"{0}\"."
0364:                    "VersionNotSupported", //  38, "XML version \"{0}\" is not supported."
0365:                    "SpaceRequiredInTextDecl", //  39, "White space is required between the version and the encoding declaration."
0366:                    "EncodingDeclInvalid", //  40, "Invalid encoding name \"{0}\"."
0367:                    "SDDeclInvalid", //  41, "The standalone document declaration value must be \"yes\" or \"no\", not \"{0}\"."
0368:                    "XMLDeclUnterminated", //  42, "The XML declaration must end with \"?>\"."
0369:                    "TextDeclUnterminated", //  43, "The text declaration must end with \"?>\"."
0370:                    "InvalidCharInInternalSubset", //  44, "An invalid XML character (Unicode: 0x{0}) was found in the internal subset of the DTD."
0371:                    "InvalidCharInExternalSubset", //  45, "An invalid XML character (Unicode: 0x{0}) was found in the external subset of the DTD."
0372:                    "InvalidCharInEntityValue", //  46, "An invalid XML character (Unicode: 0x{0}) was found in the literal entity value."
0373:                    "MixedContentUnterminated", //  47, "The mixed content model \"(0}\" must end with \")*\"."
0374:                    "NameRequiredInPEReference", //  48, "The entity name must immediately follow the '%' in the parameter entity reference."
0375:                    "SemicolonRequiredInPEReference", //  49, "The parameter entity reference must end with the ';' delimiter."
0376:                    "ExternalIDRequired", //  50, "The external entity declaration must begin with either \"SYSTEM\" or \"PUBLIC\"."
0377:                    "PEReferenceWithinMarkup", //  51, "The parameter entity reference \"%(0);\" cannot occur within markup in the internal subset of the DTD."
0378:                    "InvalidCharInProlog", //  52, "An invalid XML character (Unicode: 0x{0}) was found in the prolog of the document."
0379:                    "InvalidCharInMisc", //  53, "An invalid XML character (Unicode: 0x{0}) was found in markup after the end of the element content."
0380:                    "InvalidCharInCDSect", //  54, "An invalid XML character (Unicode: 0x{0}) was found in the CDATA section."
0381:                    "InvalidCharInContent", //  55, "An invalid XML character (Unicode: 0x{0}) was found in the element content of the document."
0382:                    "ETagRequired", //  56, "The element type \"{0}\" must be terminated by the matching end-tag \"</{0}>\"."
0383:                    "ETagUnterminated", //  57, "The end-tag for element type \"{0}\" must end with a ''>'' delimiter."
0384:                    "AttNameRequiredInAttDef", //  58, "The attribute name must be specified in the attribute-list declaration for element \"{0}\"."
0385:                    "AttTypeRequiredInAttDef", //  59, "The attribute type must be specified in the attribute-list declaration of attribute \"{1}\" for element \"{0}\"."
0386:                    "PubidCharIllegal", //  60, "The character (Unicode: 0x{0}) is not permitted in the public identifier."
0387:                    "EncodingNotSupported", //  61, "The encoding \"{0}\" is not supported."
0388:                    "EntityNotDeclared", //  62, "The entity \"{0}\" was referenced, but not declared."
0389:                    "ReferenceToUnparsedEntity", //  63, "The unparsed entity reference \"&{0};\" is not permitted."
0390:                    "ReferenceToExternalEntity", //  64, "The external entity reference \"&{0};\" is not permitted in an attribute value."
0391:                    "MSG_AVAILABLE0", //  65, 
0392:                    "CDSectUnterminated", //  66, "The CDATA section must end with \"]]>\"."
0393:                    "DuplicateTypeInMixedContent", //  67, "The element type \"{0}\" was already specified in this content model."
0394:                    "ElementEntityMismatch", //  68, "The element \"{0}\" must start and end within the same entity."
0395:                    "IDDefaultTypeInvalid", //  69, "The ID attribute \"{0}\" must have a declared default of \"#IMPLIED\" or \"#REQUIRED\"."
0396:                    "EncodingRequired", //  70, "A parsed entity not encoded in either UTF-8 or UTF-16 must contain an encoding declaration."
0397:                    "RecursiveReference", //  71, "Recursive reference \"&{0};\". (Reference path: {1})"
0398:                    "RecursivePEReference", //  72, "Recursive reference \"%{0};\". (Reference path: {1})"
0399:                    "ImproperDeclarationNesting", //  73, "The replacement text of parameter entity \"(0)\" must include properly nested declarations."
0400:                    "ImproperGroupNesting", //  74, "The replacement text of parameter entity \"(0)\" must include properly nested pairs of parentheses in content model."
0401:                    "IDInvalid", //  75, "Attribute value \"{1}\" of type ID must be a name."
0402:                    "IDNotUnique", //  76, "Attribute value \"(1}\" of type ID must be unique within the document."
0403:                    "IDREFInvalid", //  77, "Attribute value \"(1}\" of type IDREF must be a name."
0404:                    "NMTOKENInvalid", //  78, "Attribute value \"(1}\" of type NMTOKEN must be a name token."
0405:                    "ENTITYInvalid", //  79, "Attribute value \"(1}\" of type ENTITY must be the name of an unparsed entity."
0406:                    "ENTITIESInvalid", //  80, "Attribute value \"(1}\" of type ENTITIES must be the names of one or more unparsed entities."
0407:                    "MSG_ELEMENT_WITH_ID_REQUIRED", //  81, "MSG_ELEMENT_WITH_ID_REQUIRED"
0408:                    "MSG_ATTRIBUTE_NOT_DECLARED", //  82, "MSG_ATTRIBUTE_NOT_DECLARED"
0409:                    "MSG_ELEMENT_NOT_DECLARED", //  83, "MSG_ELEMENT_NOT_DECLARED"
0410:                    "MSG_AVAILABLE1", //  84,
0411:                    "MSG_DUPLICATE_ATTDEF", //  85, "MSG_DUPLICATE_ATTDEF"
0412:                    "MSG_MORE_THAN_ONE_ID_ATTRIBUTE", //  86, "MSG_MORE_THAN_ONE_ID_ATTRIBUTE"
0413:                    "MSG_CONTENT_INVALID", //  87, "MSG_CONTENT_INVALID"
0414:                    "MSG_CONTENT_INCOMPLETE", //  88, "MSG_CONTENT_INCOMPLETE"
0415:                    "MSG_ELEMENT_ALREADY_DECLARED", //  89, "MSG_ELEMENT_ALREADY_DECLARED"
0416:                    "MSG_ATTRIBUTE_VALUE_NOT_IN_LIST", //  90, "MSG_ATTRIBUTE_VALUE_NOT_IN_LIST"
0417:                    "MSG_AVAILABLE2", //  91,
0418:                    "UndeclaredElementInContentSpec", //   92, "The content model of element \"{0}\" refers to the undeclared element \"{1}\"."
0419:                    "MSG_FIXED_ATTVALUE_INVALID", //  93, "MSG_FIXED_ATTVALUE_INVALID"
0420:                    "MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED", //  94, "MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED"
0421:                    "MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED", //  95, "MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED"
0422:                    "MSG_AVAILABLE3", //  96,
0423:                    "MSG_AVAILABLE4", //  97,
0424:                    "MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN", //  98, "MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN"
0425:                    "MSG_AVAILABLE5", //  99,
0426:                    "SystemIDUnterminated", // 100, "MSG_SYSTEMID_UNTERMINATED"
0427:                    "PublicIDUnterminated", // 101, "MSG_PUBLICID_UNTERMINATED"
0428:                    "MSG_EXTERNAL_ENTITY_NOT_PERMITTED", // 102, "MSG_EXTERNAL_ENTITY_NOT_PERMITTED"
0429:                    "MSG_AVAILABLE6", // 103,
0430:                    "XMLDeclMustBeFirst", // 104, "MSG_XMLDECL_MUST_BE_FIRST"
0431:                    "TextDeclMustBeFirst", // 105, "MSG_TEXTDECL_MUST_BE_FIRST"
0432:                    "ElementDeclUnterminated", // 106, "MSG_ELEMENTDECL_UNTERMINATED"
0433:                    "MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_PEDECL", // 107, "MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_PEDECL"
0434:                    "MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_ENTITYDECL", // 108, "MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_ENTITYDECL"
0435:                    "MSG_SPACE_REQUIRED_BEFORE_PERCENT_IN_PEDECL", // 109, "MSG_SPACE_REQUIRED_BEFORE_PERCENT_IN_PEDECL"
0436:                    "MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL", // 110, "MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL"
0437:                    "MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL", // 111, "MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL"
0438:                    "EntityDeclUnterminated", // 112, "MSG_ENTITYDECL_UNTERMINATED"
0439:                    "MSG_NOTATION_NAME_REQUIRED_FOR_UNPARSED_ENTITYDECL", // 113, "MSG_NOTATION_NAME_REQUIRED_FOR_UNPARSED_ENTITYDECL"
0440:                    "MSG_NOTATION_NOT_DECLARED_FOR_UNPARSED_ENTITYDECL", // 114, "MSG_NOTATION_NOT_DECLARED_FOR_UNPARSED_ENTITYDECL"
0441:                    "MSG_NAME_REQUIRED_IN_NOTATIONTYPE", // 115, "MSG_NAME_REQUIRED_IN_NOTATIONTYPE"
0442:                    "MSG_NMTOKEN_REQUIRED_IN_ENUMERATION", // 116, "MSG_NMTOKEN_REQUIRED_IN_ENUMERATION"
0443:                    "MSG_NOTATION_NOT_DECLARED_FOR_NOTATIONTYPE_ATTRIBUTE", // 117, "MSG_NOTATION_NOT_DECLARED_FOR_NOTATIONTYPE_ATTRIBUTE"
0444:                    "NotationTypeUnterminated", // 118, "MSG_NOTATIONTYPE_UNTERMINATED"
0445:                    "EnumerationUnterminated", // 119, "MSG_ENUMERATION_UNTERMINATED"
0446:                    "MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL", // 120, "MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL"
0447:                    "MSG_MORE_THAN_ONE_NOTATION_ATTRIBUTE", // 121, "MSG_MORE_THAN_ONE_NOTATION_ATTRIBUTE"
0448:                    "NotationDeclUnterminated", // 122, "MSG_NOTATIONDECL_UNTERMINATED"
0449:                    "MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE", // 123, "MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE"
0450:                    "CDEndInContent", // 124, "MSG_CDEND_IN_CONTENT"
0451:                    "MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL", // 125, "MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL"
0452:                    "TwoColonsInQName", // 126, ""
0453:                    "MarkupNotRecognizedInContent", // 127, "MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT"
0454:                    "MarkupNotRecognizedInMisc", // 128, "MSG_MARKUP_NOT_RECOGNIZED_IN_MISC"
0455:                    "MarkupNotRecognizedInProlog", // 129, "MSG_MARKUP_NOT_RECOGNIZED_IN_PROLOG"
0456:                    "MSG_OPEN_PAREN_REQUIRED_IN_NOTATIONTYPE", // 130, "MSG_OPEN_PAREN_REQUIRED_IN_NOTATIONTYPE"
0457:                    "PITargetRequired", // 131, "MSG_PITARGET_REQUIRED"
0458:                    "MSG_REFERENCE_TO_EXTERNALLY_DECLARED_ENTITY_WHEN_STANDALONE", // 132, "MSG_REFERENCE_TO_EXTERNALLY_DECLARED_ENTITY_WHEN_STANDALONE"
0459:                    "MSG_URI_FRAGMENT_IN_SYSTEMID", // 133, "MSG_URI_FRAGMENT_IN_SYSTEMID"
0460:                    "RootElementRequired", // 134, "MSG_ROOT_ELEMENT_REQUIRED"
0461:                    "MSG_SPACE_REQUIRED_AFTER_FIXED_IN_DEFAULTDECL", // 135, "MSG_SPACE_REQUIRED_AFTER_FIXED_IN_DEFAULTDECL"
0462:                    "MSG_SPACE_REQUIRED_AFTER_NOTATION_IN_NOTATIONTYPE", // 136, "MSG_SPACE_REQUIRED_AFTER_NOTATION_IN_NOTATIONTYPE"
0463:                    "MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL", // 137, "MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL"
0464:                    "MSG_SPACE_REQUIRED_BEFORE_ATTRIBUTE_NAME_IN_ATTDEF", // 138, "MSG_SPACE_REQUIRED_BEFORE_ATTRIBUTE_NAME_IN_ATTDEF"
0465:                    "MSG_SPACE_REQUIRED_BEFORE_ATTTYPE_IN_ATTDEF", // 139, "MSG_SPACE_REQUIRED_BEFORE_ATTTYPE_IN_ATTDEF"
0466:                    "MSG_SPACE_REQUIRED_BEFORE_DEFAULTDECL_IN_ATTDEF", // 140, "MSG_SPACE_REQUIRED_BEFORE_DEFAULTDECL_IN_ATTDEF"
0467:                    "MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ATTLISTDECL", // 141, "MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ATTLISTDECL"
0468:                    "MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_NOTATIONDECL", // 142, "MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_NOTATIONDECL"
0469:                    "MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE", // 143, "MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE"
0470:                    "MSG_XML_SPACE_DECLARATION_ILLEGAL", // 144, "MSG_XML_SPACE_DECLARATION_ILLEGAL"
0471:                    "MSG_CLOSE_PAREN_REQUIRED_IN_MIXED", // 145, "MSG_CLOSE_PAREN_REQUIRED_IN_MIXED"
0472:                    "MSG_CONTENTSPEC_REQUIRED_IN_ELEMENTDECL", // 146, "MSG_CONTENTSPEC_REQUIRED_IN_ELEMENTDECL"
0473:                    "DoctypedeclUnterminated", // 147, "MSG_DOCTYPEDECL_UNTERMINATED"
0474:                    "MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL", // 148, "MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL"
0475:                    "MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT", // 149, "MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT"
0476:                    "MSG_MARKUP_NOT_RECOGNIZED_IN_DTD", // 150, "MSG_MARKUP_NOT_RECOGNIZED_IN_DTD"
0477:                    "AttributeValueUnterminated", // 151, "MSG_ATTRIBUTE_VALUE_UNTERMINATED"
0478:                    "MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN", // 152, "MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN"
0479:                    "MSG_ROOT_ELEMENT_TYPE_REQUIRED", // 153, "MSG_ROOT_ELEMENT_TYPE_REQUIRED"
0480:                    "MSG_SPACE_REQUIRED_AFTER_PUBIDLITERAL_IN_EXTERNALID", // 154, "MSG_SPACE_REQUIRED_AFTER_PUBIDLITERAL_IN_EXTERNALID"
0481:                    "MSG_SPACE_REQUIRED_BEFORE_CONTENTSPEC_IN_ELEMENTDECL", // 155, "MSG_SPACE_REQUIRED_BEFORE_CONTENTSPEC_IN_ELEMENTDECL"
0482:                    "MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ELEMENTDECL", // 156, "MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ELEMENTDECL"
0483:                    "MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_UNPARSED_ENTITYDECL", // 157, "MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_UNPARSED_ENTITYDECL"
0484:                    "MSG_SPACE_REQUIRED_BEFORE_PUBIDLITERAL_IN_EXTERNALID", // 158, "MSG_SPACE_REQUIRED_BEFORE_PUBIDLITERAL_IN_EXTERNALID"
0485:                    "MSG_SPACE_REQUIRED_BEFORE_ROOT_ELEMENT_TYPE_IN_DOCTYPEDECL", // 159, "MSG_SPACE_REQUIRED_BEFORE_ROOT_ELEMENT_TYPE_IN_DOCTYPEDECL"
0486:                    "MSG_SPACE_REQUIRED_BEFORE_SYSTEMLITERAL_IN_EXTERNALID", // 160, "MSG_SPACE_REQUIRED_BEFORE_SYSTEMLITERAL_IN_EXTERNALID"
0487:                    "ReferenceNotInOneEntity", // 161, "MSG_REFERENCE_NOT_IN_ONE_ENTITY"
0488:                    "CommentNotInOneEntity", // 162, "MSG_COMMENT_MUST_BEGIN_AND_END_IN_THE_SAME_ENTITY"
0489:                    "CommentUnterminated", // 163, "MSG_COMMENT_UNTERMINATED"
0490:                    "PIUnterminated", // 164, "MSG_PI_UNTERMINATED"
0491:                    "PINotInOneEntity", // 165, "MSG_PI_MUST_BEGIN_AND_END_IN_THE_SAME_ENTITY"
0492:                    "ReferenceUnterminated", // 166, "MSG_REFERENCE_UNTERMINATED"
0493:                    "PrefixDeclared", // 167, "MSG_PREFIX_DECLARED"
0494:                    "MSG_ATT_DEFAULT_INVALID", // 168, "MSG_ATT_DEFAULT_INVALID"
0495:                    "MSG_GENERIC_SCHEMA_ERROR", // 169  "MSG_GENERIC_SCHEMA_ERROR"
0496:                    "MSG_DTD_SCHEMA_ERROR", // 170
0497:                    "NamespaceNameEmpty", // 171, "MSG_NAMESPACE_NAME_EMPTY"
0498:                    // ...
0499:                    "" //
0500:            };
0501:
0502:            public static final int VC_ROOT_ELEMENT_TYPE = 1, // 2.8 VC: Root Element Type
0503:                    VC_IDREF = 2, // 3.3.1 VC: IDREF
0504:                    VC_NAME_TOKEN = 3, // 3.3.1 VC: Name Token
0505:                    P17_RESERVED_PITARGET = 4, // 2.6 [17] PITarget matching [Xx][Mm][Ll] is reserved
0506:                    P16_WHITESPACE_REQUIRED = 5, // 2.6 [16] White space required between PITarget and data
0507:                    P16_INVALID_CHARACTER = 6, // 2.6 [16] Invalid character in PI data
0508:                    P15_DASH_DASH = 7, // 2.5 [15] The string "--" must not occur within comments
0509:                    P15_INVALID_CHARACTER = 8, // 2.5 [15] Invalid character in comment
0510:                    WFC_LEGAL_CHARACTER = 9, // 4.1 [66] WFC: Legal Character
0511:                    P10_INVALID_CHARACTER = 10, // 2.3 [10] Invalid character in AttValue
0512:                    WFC_NO_LESSTHAN_IN_ATTVALUE = 11, // 3.1 [41] WFC: No < in Attribute Values
0513:                    P10_QUOTE_REQUIRED = 12, // 2.3 [10] No quote delimiter in AttValue
0514:                    P68_NAME_REQUIRED = 13, // 4.1 [68] Name missing in EntityRef
0515:                    P68_SEMICOLON_REQUIRED = 14, // 4.1 [68] An EntityRef must end with a ';'
0516:                    P66_DIGIT_REQUIRED = 15, // 4.1 [66] A "&#" CharRef must contain at least one decimal digit
0517:                    P66_HEXDIGIT_REQUIRED = 16, // 4.1 [66] A "&#x" CharRef must contain at least one hexadecimal digit
0518:                    P66_SEMICOLON_REQUIRED = 17, // 4.1 [66] A CharRef must end with a ';'
0519:                    P11_QUOTE_REQUIRED = 18, // 2.3 [11] No quote delimiter in SystemLiteral
0520:                    P11_INVALID_CHARACTER = 19, // 2.3 [11] Invalid character in SystemLiteral
0521:                    P12_QUOTE_REQUIRED = 20, // 2.3 [12] No quote delimiter in PubidLiteral
0522:                    P12_INVALID_CHARACTER = 21, // 2.3 [12] Invalid character in PubidLiteral
0523:                    P62_UNTERMINATED = 22, // 3.4 [62] Included conditional sections must end with "]]>"
0524:                    P63_UNTERMINATED = 23, // 3.4 [63] Excluded conditional sections must end with "]]>"
0525:                    P65_INVALID_CHARACTER = 24, // 3.4 [64] Invalid character in excluded conditional section
0526:                    P40_UNTERMINATED = 25, // 3.1 [40] Element type must be followed by attributes, ">" or "/>"
0527:                    P41_EQ_REQUIRED = 26, // 3.1 [41] Attribute name must be followed by an '=' character
0528:                    WFC_UNIQUE_ATT_SPEC = 27, // 3.1 [40] [44] Attribute must only appear once
0529:                    P77_ENCODINGDECL_REQUIRED = 28, // 4.3.1 [77] The encoding declaration is not optional
0530:                    P23_VERSIONINFO_REQUIRED = 29, // 2.8 [23] The version is not optional
0531:                    P24_EQ_REQUIRED = 30, // 2.8 [24] An '=' is required after the version
0532:                    P32_EQ_REQUIRED = 31, // 2.9 [32] An '=' is required in a standalone document declaration
0533:                    P80_EQ_REQUIRED = 32, // 4.3.3 [80] An '=' is required in an encoding declaration
0534:                    P24_QUOTE_REQUIRED = 33, // 2.8 [24] The version is a quoted string
0535:                    P32_QUOTE_REQUIRED = 34, // 2.9 [32] The standalone document declaration value is a quoted string
0536:                    P80_QUOTE_REQUIRED = 35, // 4.3.3 [80] The encoding name value is a quoted string
0537:                    P26_INVALID_CHARACTER = 36, // 2.8 [26] The version contained an invalid XML character
0538:                    P32_INVALID_CHARACTER = 37, // 2.9 [32] The standalone document declaration value contained an invalid XML character
0539:                    P81_INVALID_CHARACTER = 38, // 4.3.3 [81] The encoding name value contained an invalid XML character
0540:                    P26_INVALID_VALUE = 39, // 2.8 [26] The version was not in the correct format
0541:                    P26_NOT_SUPPORTED = 40, // 2.8 [26] The version specified is not supported
0542:                    P80_WHITESPACE_REQUIRED = 41, // 4.3.3 [80] Whitespace required between version and encoding
0543:                    P81_INVALID_VALUE = 42, // 4.3.3 [81] The encoding name value was not in the correct format
0544:                    P32_INVALID_VALUE = 43, // 2.9 [32] The standalone document declaration value was not "yes" or "no"
0545:                    P23_UNTERMINATED = 44, // 2.8 [23] An XML declaration must end with "?>"
0546:                    P77_UNTERMINATED = 45, // 4.3.1 [77] A text declaration must end with "?>"
0547:                    P28_INVALID_CHARACTER = 46, // 2.8 [28] Invalid character in the internal subset of the DTD
0548:                    P30_INVALID_CHARACTER = 47, // 2.8 [30] Invalid character in the external subset or an external entity within DTD
0549:                    P9_INVALID_CHARACTER = 48, // 2.3 [9] Invalid character in EntityValue
0550:                    P51_UNTERMINATED = 49, // 3.2.2 [51] Mixed content model with element types must end with ")*"
0551:                    P69_NAME_REQUIRED = 50, // 4.1 [69] Name missing in PEReference
0552:                    P69_SEMICOLON_REQUIRED = 51, // 4.1 [69] An PEReference must end with a ';'
0553:                    P75_INVALID = 52, // 4.2.2 [75] An ExternalId must begin with either "SYSTEM" or "PUBLIC"
0554:                    WFC_PES_IN_INTERNAL_SUBSET = 53, // 2.8 [28] PEReferences in the internal subset cannot occur within markup declarations
0555:                    P22_INVALID_CHARACTER = 54, // 2.8 [22] Invalid character in prolog
0556:                    P27_INVALID_CHARACTER = 55, // 2.8 [27] Invalid character in Misc
0557:                    P20_INVALID_CHARACTER = 56, // 2.7 [20] Invalid character in CDSect
0558:                    P43_INVALID_CHARACTER = 57, // 3.1 [43] Invalid character in content
0559:                    P39_UNTERMINATED = 58, // 3 [39] Element type must be followed by attributes, ">" or "/>"
0560:                    P42_UNTERMINATED = 59, // 3.1 [42] end-tag must end with '>'
0561:                    P81_NOT_SUPPORTED = 60, // 4.3.3 [81] The encoding is not supported
0562:                    WFC_ENTITY_DECLARED = 61, // 4.1 [68] The entity was referenced, but not declared
0563:                    VC_ENTITY_DECLARED = 62, // 4.1 [68] The entity was referenced, but not declared
0564:                    WFC_PARSED_ENTITY = 63, // 4.1 [68] An unparsed entity was referenced
0565:                    WFC_NO_EXTERNAL_ENTITY_REFERENCES = 64, // 3.1 [42] reference to external entity in AttValue
0566:                    // xml:lang no longer checked http://www.w3.org/XML/xml-19980210-errata#E73
0567:                    P33_INVALID = 65, // 2.12 [33] xml:lang attribute value must match LanguageID production
0568:                    P18_UNTERMINATED = 66, // 2.7 [18] CDATA sections must end with "]]>"
0569:                    VC_NO_DUPLICATE_TYPES = 67, // 3.2.2 [51] The same type must not appear more than once in a mixed content declaration
0570:                    P78_NOT_WELLFORMED = 68, // 4.3.2 [78] 
0571:                    VC_ID_ATTRIBUTE_DEFAULT = 69, // 3.3.1 [54] 
0572:                    P53_NAME_REQUIRED = 70, // 3.3 [53] 
0573:                    P53_ATTTYPE_REQUIRED = 71, // 3.3 [53] 
0574:                    P81_REQUIRED = 72, // 4.3.3 [81] 
0575:                    WFC_NO_RECURSION = 73, // 4.1 [68] 
0576:                    VC_PROPER_DECLARATION_PE_NESTING = 74, // 2.8 [29] 
0577:                    VC_PROPER_GROUP_PE_NESTING = 75, // 3.2.1 [47] 
0578:                    VC_ID = 76, // 3.3.1 [56] 
0579:                    VC_ENTITY_NAME = 77, // 3.3.1 [56] 
0580:                    VC_ATTRIBUTE_VALUE_TYPE = 78, // 3.1 [41] 
0581:                    VC_ELEMENT_VALID = 79, // 3 [39] 
0582:                    VC_STANDALONE_DOCUMENT_DECLARATION = 80, // 2.9 [32] 
0583:                    VC_ONE_ID_PER_ELEMENT_TYPE = 81, // 3.3.1 [56] 
0584:                    VC_UNIQUE_ELEMENT_TYPE_DECLARATION = 82, // 3.2 [45] 
0585:                    P45_UNDECLARED_ELEMENT_IN_CONTENTSPEC = 83, // 3.2 [45] 
0586:
0587:                    VC_NOTATION_ATTRIBUTES = 84,
0588:                    P53_DUPLICATE = 85,
0589:                    VC_ENUMERATION = 86,
0590:                    VC_FIXED_ATTRIBUTE_DEFAULT = 87,
0591:                    VC_REQUIRED_ATTRIBUTE = 88,
0592:                    VC_NOTATION_DECLARED = 89,
0593:                    P58_NAME_REQUIRED = 90,
0594:                    P58_UNTERMINATED = 91,
0595:                    P59_NMTOKEN_REQUIRED = 92,
0596:                    P59_UNTERMINATED = 93,
0597:                    P70_SPACE = 94,
0598:                    P70_REQUIRED_NAME = 95,
0599:                    P70_REQUIRED_SPACE = 96,
0600:                    P71_UNTERMINATED = 97,
0601:                    P72_SPACE = 98,
0602:                    P72_UNTERMINATED = 99,
0603:                    P76_REQUIRED = 100,
0604:                    P82_NAME_REQUIRED = 101,
0605:                    P82_SPACE_REQUIRED = 102,
0606:                    P82_UNTERMINATED = 103,
0607:                    P14_INVALID = 104,
0608:                    P16_PITARGET_REQUIRED = 105,
0609:                    P16_REQUIRED = 106,
0610:                    P1_ELEMENT_REQUIRED = 107,
0611:                    P22_NOT_RECOGNIZED = 108,
0612:                    P27_NOT_RECOGNIZED = 109,
0613:                    P43_NOT_RECOGNIZED = 110,
0614:                    P52_ELEMENT_TYPE_REQUIRED = 111,
0615:                    P52_SPACE_REQUIRED = 112,
0616:                    P53_SPACE_REQUIRED = 113,
0617:                    P58_OPEN_PAREN_REQUIRED = 114,
0618:                    P58_SPACE_REQUIRED = 115,
0619:                    P60_SPACE_REQUIRED = 116,
0620:                    S2_10_DECLARATION_ILLEGAL = 117,
0621:                    P39_ELEMENT_TYPE_REQUIRED = 118,
0622:                    P28_ROOT_ELEMENT_TYPE_REQUIRED = 119,
0623:                    P28_SPACE_REQUIRED = 120,
0624:                    P28_UNTERMINATED = 121,
0625:                    P29_NOT_RECOGNIZED = 122,
0626:                    P45_CONTENTSPEC_REQUIRED = 123,
0627:                    P45_ELEMENT_TYPE_REQUIRED = 124,
0628:                    P45_SPACE_REQUIRED = 125,
0629:                    P45_UNTERMINATED = 126,
0630:                    P47_CLOSE_PAREN_REQUIRED = 127,
0631:                    P47_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED = 128,
0632:                    P51_CLOSE_PAREN_REQUIRED = 129,
0633:                    P51_ELEMENT_TYPE_REQUIRED = 130,
0634:                    P75_SPACE_REQUIRED = 131,
0635:                    P76_SPACE_REQUIRED = 132,
0636:                    P15_UNTERMINATED = 133,
0637:                    P16_UNTERMINATED = 134,
0638:                    P67_UNTERMINATED = 135,
0639:                    P10_UNTERMINATED = 136,
0640:                    P22_XMLDECL_MUST_BE_FIRST = 137,
0641:                    P30_TEXTDECL_MUST_BE_FIRST = 138,
0642:                    P5_INVALID_CHARACTER = 139,
0643:                    P11_UNTERMINATED = 140,
0644:                    P12_UNTERMINATED = 141,
0645:                    P11_URI_FRAGMENT = 142,
0646:                    VC_ONE_NOTATION_PER_ELEMENT_TYPE = 143,
0647:                    NC_PREFIX_DECLARED = 144,
0648:                    VC_ATTRIBUTE_DEFAULT_LEGAL = 145,
0649:                    SCHEMA_GENERIC_ERROR = 146, NC_NAMESPACE_NAME_EMPTY = 147,
0650:
0651:                    // ...
0652:                    CONSTRAINT_MAX_CODE = 200;
0653:
0654:            /*
0655:             private static final Constraint[] fgConstraints = {
0656:             new Constraint(null, null, null, null),
0657:             // VC_ROOT_ELEMENT_TYPE = 1
0658:             new Constraint("2.8", "", "2.8 VC: Root Element Type",
0659:             "Validity Constraint: Root Element Type\n" +
0660:             "The Name in the document type declaration must match the element type of the\n" +
0661:             "root element."),
0662:             // VC_IDREF = 2
0663:             new Constraint("3.3.1 2.3", "[56] [6]", "3.3.1 VC: IDREF",
0664:             "Validity Constraint: IDREF\n" +
0665:             "[56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'\n" +
0666:             "Values of type IDREF must match the Name production, and values of type\n" +
0667:             "IDREFS must match Names; each Name must match the value of an ID attribute\n" +
0668:             "on some element in the XML document; i.e. IDREF values must match the value\n" +
0669:             "of some ID attribute."),
0670:             // VC_NAME_TOKEN = 3
0671:             new Constraint("3.3.1 2.3", "[56] [8]", "3.3.1 VC: Name Token",
0672:             "Validity Constraint: Name Token\n" +
0673:             "Values of type NMTOKEN must match the Nmtoken production; values of type\n" +
0674:             "NMTOKENS must match Nmtokens."),
0675:             // P17_RESERVED_PITARGET = 4
0676:             new Constraint("2.6", "[17]", "2.6 [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))",
0677:             "[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))\n" +
0678:             "The target names \"XML\", \"xml\", and so on are reserved for standardization\n" +
0679:             "in this or future versions of this specification."),
0680:             // P16_WHITESPACE_REQUIRED = 5
0681:             new Constraint("2.6 2.3", "[16] [3]", "2.6 [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'",
0682:             "[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'\n" +
0683:             "[3] S ::= (#x20 | #x9 | #xD | #xA)+\n" +
0684:             "White space is required between the PITarget and any additional characters\n" +
0685:             "that are to be passed through to the application."),
0686:             // P16_INVALID_CHARACTER = 6
0687:             new Constraint("2.6 2.2", "[16] [2]", "2.6 [2] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'",
0688:             "[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'\n" +
0689:             "[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]\n" +
0690:             "Processing instruction data is required to contain legal XML characters."),
0691:             // P15_DASH_DASH = 7
0692:             new Constraint("2.5", "[15]", "2.5 [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'",
0693:             "[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'\n" +
0694:             "For compatibility, the string \"--\" (double-hyphen) must not occur within comments."),
0695:             // P15_INVALID_CHARACTER = 8
0696:             new Constraint("2.5 2.2", "[15] [2]", "2.5 [2] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'",
0697:             "[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'\n" +
0698:             "[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]\n" +
0699:             "Comments are required to contain legal XML characters."),
0700:             // WFC_LEGAL_CHARACTER = 9
0701:             new Constraint("4.1", "[66] [2]", "4.1 WFC: Legal Character",
0702:             "Well-Formedness Constraint: Legal Character\n" +
0703:             "[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n" +
0704:             "[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]\n" +
0705:             "Characters referred to using character references must match the production\n" +
0706:             "for Char."),
0707:             // P10_INVALID_CHARACTER = 10
0708:             new Constraint("2.3", "[10]", "2.3 [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"",
0709:             "[10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"\n" +
0710:             "Attribute values are required to contain legal XML characters."),
0711:             // WFC_NO_LESSTHAN_IN_ATTVALUE = 11
0712:             new Constraint("3.1 2.3", "[41] [10]", "3.1 WFC: No < in Attribute Values",
0713:             "Well-Formedness Constraint: No < in Attribute Values\n" +
0714:             "[41] Attribute ::= Name Eq AttValue\n" +
0715:             "[10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"\n" +
0716:             "The replacement text of any entity referred to directly or indirectly in an\n" +
0717:             "attribute value (other than \"&lt;\") must not contain a <."),
0718:             // P10_QUOTE_REQUIRED = 12
0719:             new Constraint("2.3", "[10]", "2.3 [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"",
0720:             "[10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"\n" +
0721:             "Attribute values are specified using quoted strings."),
0722:             // P68_NAME_REQUIRED = 13
0723:             new Constraint("4.1", "[68]", "4.1 [68] EntityRef ::= '&' Name ';'",
0724:             "[68] EntityRef ::= '&' Name ';'\n" +
0725:             "The '&' delimiter must be followed by a valid Name in an entity reference."),
0726:             // P68_SEMICOLON_REQUIRED = 14
0727:             new Constraint("4.1", "[68]", "4.1 [68] EntityRef ::= '&' Name ';'",
0728:             "[68] EntityRef ::= '&' Name ';'\n" +
0729:             "An entity reference must end with a ';' delimiter."),
0730:             // P66_DIGIT_REQUIRED = 15
0731:             new Constraint("4.1", "[66]", "4.1 [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'",
0732:             "[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n" +
0733:             "If the character reference begins with \"&#\", not \"&#x\", the digits up\n" +
0734:             "to the terminating ; provide a decimal representation of the character's\n" +
0735:             "code point in ISO/IEC 10646."),
0736:             // P66_HEXDIGIT_REQUIRED = 16
0737:             new Constraint("4.1", "[66]", "4.1 [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'",
0738:             "[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n" +
0739:             "If the character reference begins with \"&#x\", the digits and letters up to\n" +
0740:             "the terminating ; provide a hexadecimal representation of the character's\n" +
0741:             "code point in ISO/IEC 10646."),
0742:             // P66_SEMICOLON_REQUIRED = 17
0743:             new Constraint("4.1", "[66]", "4.1 [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'",
0744:             "[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n" +
0745:             "A character reference must end with a ';' delimiter."),
0746:             // P11_QUOTE_REQUIRED = 18
0747:             new Constraint("2.3", "[11]", "2.3 [11] SystemLiteral ::= ('\"' [^\"]* '\"') | (\"'\" [^']* \"'\")",
0748:             "[11] SystemLiteral ::= ('\"' [^\"]* '\"') | (\"'\" [^']* \"'\")\n" +
0749:             "System identifiers are specified using quoted strings."),
0750:             // P11_INVALID_CHARACTER = 19
0751:             new Constraint("2.3", "[11]", "2.3 [11] SystemLiteral ::= ('\"' [^\"]* '\"') | (\"'\" [^']* \"'\")",
0752:             "[11] SystemLiteral ::= ('\"' [^\"]* '\"') | (\"'\" [^']* \"'\")\n" +
0753:             "System identifiers are required to contain legal XML characters."),
0754:             // P12_QUOTE_REQUIRED = 20
0755:             new Constraint("2.3", "[12]", "2.3 [12] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"",
0756:             "[12] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n" +
0757:             "Public identifiers are specified using quoted strings."),
0758:             // P12_INVALID_CHARACTER = 21
0759:             new Constraint("2.3", "[13]", "2.3 [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]",
0760:             "[13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]\n" +
0761:             "Public identifiers must consist of PubidChar characters."),
0762:             // P62_UNTERMINATED = 22
0763:             new Constraint("3.4", "[62]", "3.4 [62] includeSect ::= '<![' S? 'INCLUDE' S? '[' extSubsetDecl ']]>'",
0764:             "[62] includeSect ::= '<![' S? 'INCLUDE' S? '[' extSubsetDecl ']]>'\n" +
0765:             "Included conditional section must be terminated by \"]]>\"."),
0766:             // P63_UNTERMINATED = 23
0767:             new Constraint("3.4", "[63]", "3.4 [63] ignoreSect ::= '<![' S? 'IGNORE' S? '[' ignoreSectContents* ']]>'",
0768:             "[63] ignoreSect ::= '<![' S? 'IGNORE' S? '[' ignoreSectContents* ']]>'\n" +
0769:             "Excluded conditional sections must be terminated by \"]]>\"."),
0770:             // P65_INVALID_CHARACTER = 24
0771:             new Constraint("3.4", "[65]", "3.4 [65] Ignore ::= Char* - (Char* ('<![' | ']]>') Char*)",
0772:             "[65] Ignore ::= Char* - (Char* ('<![' | ']]>') Char*)\n" +
0773:             "Excluded conditional sections are required to contain legal XML characters."),
0774:             // P40_UNTERMINATED = 25
0775:             new Constraint("3.1", "[40]", "3.1 [40] STag ::= '<' Name (S Attribute)* S? '>'",
0776:             "[40] STag ::= '<' Name (S Attribute)* S? '>'\n" +
0777:             "[39] element ::= EmptyElemTag | STag content ETag\n" +
0778:             "[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>'\n" +
0779:             "Element type name must be followed by Attribute, \">\" or \"/>\"."),
0780:             // P41_EQ_REQUIRED = 26
0781:             new Constraint("3.1", "[41]", "3.1 [41] Attribute ::= Name Eq AttValue",
0782:             "[41] Attribute ::= Name Eq AttValue\n" +
0783:             "[25] Eq ::= S? '=' S?\n" +
0784:             "Attribute name must be followed by an '=' character."),
0785:             // WFC_UNIQUE_ATT_SPEC = 27
0786:             new Constraint("3.1", "[40] [44]", "3.1 WFC: Unique Att Spec",
0787:             "Well-Formedness Constraint: Unique Att Spec\n" +
0788:             "[40] STag ::= '<' Name (S Attribute)* S? '>'\n" +
0789:             "[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>'\n" +
0790:             "No attribute name may appear more than once in the same start-tag or\n" +
0791:             "empty-element tag."),
0792:             // P77_ENCODINGDECL_REQUIRED = 28
0793:             new Constraint("4.3.1", "[77]", "4.3.1 [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'",
0794:             "[77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'\n" +
0795:             "The encoding declaration is required in a text declaration."),
0796:             // P23_VERSIONINFO_REQUIRED = 29
0797:             new Constraint("2.8", "[23]", "2.8 [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'",
0798:             "[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'\n" +
0799:             "The version is required in an XML declaration."),
0800:             // P24_EQ_REQUIRED = 30
0801:             new Constraint("2.8", "[24]", "2.8 [24] VersionInfo ::= S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')",
0802:             "[24] VersionInfo ::= S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')\n" +
0803:             "[25] Eq ::= S? '=' S?\n" +
0804:             "The '=' character must follow \"version\" in VersionInfo."),
0805:             // P32_EQ_REQUIRED = 31
0806:             new Constraint("2.9", "[32]", "2.9 [32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')",
0807:             "[32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')\n" +
0808:             "[25] Eq ::= S? '=' S?\n" +
0809:             "The '=' character must follow \"standalone\" in SDDecl."),
0810:             // P80_EQ_REQUIRED = 32
0811:             new Constraint("4.3.3", "[80]", "4.3.3 [80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")",
0812:             "[80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")\n" +
0813:             "[25] Eq ::= S? '=' S?\n" +
0814:             "The '=' character must follow \"encoding\" in EncodingDecl."),
0815:             // P24_QUOTE_REQUIRED = 33
0816:             new Constraint("2.8", "[24]", "2.8 [24] VersionInfo ::= S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')",
0817:             "[24] VersionInfo ::= S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')\n" +
0818:             "The version is specified using a quoted string."),
0819:             // P32_QUOTE_REQUIRED = 34
0820:             new Constraint("2.9", "[32]", "2.9 [32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')",
0821:             "[32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')\n" +
0822:             "The standalone document declaration value is specified using a quoted string."),
0823:             // P80_QUOTE_REQUIRED = 35
0824:             new Constraint("4.3.3", "[80]", "4.3.3 [80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")",
0825:             "[80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")\n" +
0826:             "The encoding name value is specified using a quoted string."),
0827:             // P26_INVALID_CHARACTER = 36
0828:             new Constraint("2.8", "[26]", "2.8 [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+",
0829:             "[26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+\n" +
0830:             "The version is required to contain legal XML characters.."),
0831:             // P32_INVALID_CHARACTER = 37
0832:             new Constraint("2.9", "[32]", "2.9 [32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')",
0833:             "[32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')\n" +
0834:             "The standalone document declaration value is required to contain legal XML characters."),
0835:             // P81_INVALID_CHARACTER = 38
0836:             new Constraint("4.3.3", "[81]", "4.3.3 [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*",
0837:             "[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n" +
0838:             "The encoding name value is required to contain legal XML characters."),
0839:             // P26_INVALID_VALUE = 39
0840:             new Constraint("2.8", "[26]", "2.8 [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+",
0841:             "[26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+\n" +
0842:             "The version value must match the production for VersionNum."),
0843:             // P26_NOT_SUPPORTED = 40
0844:             new Constraint("2.8", "[26]", "2.8 [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+",
0845:             "[26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+\n" +
0846:             "Processors may signal an error if they receive documents labeled with versions\n" +
0847:             "they do not support."),
0848:             // P80_WHITESPACE_REQUIRED = 41
0849:             new Constraint("4.3.3", "[80]", "4.3.3 [80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")",
0850:             "[80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\")\n" +
0851:             "Whitespace is required between the version and the encoding declaration."),
0852:             // P81_INVALID_VALUE = 42
0853:             new Constraint("4.3.3", "[81]", "4.3.3 [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*",
0854:             "[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n" +
0855:             "The encoding name value must match the production for EncName."),
0856:             // P32_INVALID_VALUE = 43
0857:             new Constraint("2.9", "[32]", "2.9 [32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')",
0858:             "[32] SDDecl ::= S 'standalone' Eq (\"'\" ('yes' | 'no') \"'\" | '\"' ('yes' | 'no') '\"')\n" +
0859:             "The standalone document declaration must have a value of \"yes\" or \"no\"."),
0860:             // P23_UNTERMINATED = 44
0861:             new Constraint("2.8", "[23]", "2.8 [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'",
0862:             "[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'\n" +
0863:             "The XML declaration must be terminated by \"?>\"."),
0864:             // P77_UNTERMINATED = 45
0865:             new Constraint("4.3.1", "[77]", "4.3.1 [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'",
0866:             "[77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'\n" +
0867:             "The text declaration must be terminated by \"?>\"."),
0868:             // P28_INVALID_CHARACTER = 46
0869:             new Constraint("2.8", "[28]", "2.8 [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>'",
0870:             "[28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>'\n" +
0871:             "The internal subset of the DTD is required to contain legal XML characters."),
0872:             // P30_INVALID_CHARACTER = 47
0873:             new Constraint("2.8", "[30]", "2.8 [30] extSubset ::= TextDecl? extSubsetDecl",
0874:             "[30] extSubset ::= TextDecl? extSubsetDecl\n" +
0875:             "[31] extSubsetDecl ::= ( markupdecl | conditionalSect | PEReference | S )*\n" +
0876:             "External entities in the DTD are required to contain legal XML characters."),
0877:             // P9_INVALID_CHARACTER = 48
0878:             new Constraint("2.3", "[9]", "2.3 [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"' | \"'\" ([^%&'] | PEReference | Reference)* \"'\"",
0879:             "[9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"' | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n" +
0880:             "An entity value is required to contain legal XML characters."),
0881:             // P51_UNTERMINATED = 49
0882:             new Constraint("3.2.2", "[51]", "3.2.2 [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'",
0883:             "[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'\n" +
0884:             "A mixed content model with child element types must be terminated by \")*\"."),
0885:             // P69_NAME_REQUIRED = 50
0886:             new Constraint("4.1", "[69]", "4.1 [69] PEReference ::= '%' Name ';'",
0887:             "[69] PEReference ::= '%' Name ';'\n" +
0888:             "The '&' delimiter must be followed by a valid Name in a parameter entity reference."),
0889:             // P69_SEMICOLON_REQUIRED = 51
0890:             new Constraint("4.1", "[69]", "4.1 [69] PEReference ::= '%' Name ';'",
0891:             "[69] PEReference ::= '%' Name ';'\n" +
0892:             "A parameter entity reference must end with a ';' delimiter."),
0893:             // P75_INVALID = 52
0894:             new Constraint("4.2.2", "[75]", "4.2.2 [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral",
0895:             "[75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral\n" +
0896:             "An external entity declaration must begin with either \"SYSTEM\" or \"PUBLIC\"."),
0897:             // WFC_PES_IN_INTERNAL_SUBSET = 53
0898:             new Constraint("2.8", "[40] [44]", "2.8 WFC: PEs in Internal Subset",
0899:             "Well-Formedness Constraint: PEs in Internal Subset\n" +
0900:             "[28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>'\n" +
0901:             "In the internal DTD subset, parameter-entity references can occur only where\n" +
0902:             "markup declarations can occur, not within markup declarations."),
0903:             // P22_INVALID_CHARACTER = 54
0904:             new Constraint("2.8", "[22]", "2.8 [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?",
0905:             "[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?\n" +
0906:             "The prolog is required to contain legal XML characters."),
0907:             // P27_INVALID_CHARACTER = 55
0908:             new Constraint("2.8", "[27]", "2.8 [27] Misc ::= Comment | PI |  S",
0909:             "[27] Misc ::= Comment | PI |  S\n" +
0910:             "The markup after the end of the element content is required to contain legal XML characters."),
0911:             // P20_INVALID_CHARACTER = 56
0912:             new Constraint("2.7", "[20]", "2.7 [20] CData ::= (Char* - (Char* ']]>' Char*))",
0913:             "[20] CData ::= (Char* - (Char* ']]>' Char*))\n" +
0914:             "CDATA sections are required to contain legal XML characters."),
0915:             // P43_INVALID_CHARACTER = 57
0916:             new Constraint("3.1", "[43]", "3.1 [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*",
0917:             "[43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*\n" +
0918:             "The content of elements is required to contain legal XML characters."),
0919:             // P39_UNTERMINATED = 58
0920:             new Constraint("3", "[39]", "3 [39] element ::= EmptyElemTag | STag content ETag",
0921:             "[39] element ::= EmptyElemTag | STag content ETag\n" +
0922:             "The end of every element that begins with a start-tag must be marked by an\n" +
0923:             "end-tag containing a name that echoes the element's type as given in the\n" +
0924:             "start-tag."),
0925:             // P42_UNTERMINATED = 59
0926:             new Constraint("3.1", "[42]", "3.1 [42] ETag ::= '</' Name S? '>'",
0927:             "[42] ETag ::= '</' Name S? '>'\n" +
0928:             "An end-tag must be terminated by a '>' delimiter."),
0929:             // P81_NOT_SUPPORTED = 60
0930:             new Constraint("4.3.3", "[81]", "4.3.3 [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*",
0931:             "[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n" +
0932:             "It is a fatal error when an XML processor encounters an entity with an\n" +
0933:             "encoding that it is unable to process.\n"),
0934:             // WFC_ENTITY_DECLARED = 61
0935:             new Constraint("4.1", "[68]", "4.1 WFC: Entity Declared",
0936:             "Well-Formedness Constraint: Entity Declared\n" +
0937:             "[68] EntityRef ::= '&' Name ';'\n" +
0938:             "In a document without any DTD, a document with only an internal DTD subset\n" +
0939:             "which contains no parameter entity references, or a document with\n" +
0940:             "\"standalone='yes'\", the Name given in the entity reference must match that\n" +
0941:             "in an entity declaration, except that well-formed documents need not declare\n" +
0942:             "any of the following entities: amp, lt, gt, apos, quot. The declaration of a\n" +
0943:             "parameter entity must precede any reference to it. Similarly, the\n" +
0944:             "declaration of a general entity must precede any reference to it which\n" +
0945:             "appears in a default value in an attribute-list declaration. Note that if\n" +
0946:             "entities are declared in the external subset or in external parameter\n" +
0947:             "entities, a non-validating processor is not obligated to read and process\n" +
0948:             "their declarations; for such documents, the rule that an entity must be\n" +
0949:             "declared is a well-formedness constraint only if standalone='yes'."),
0950:             // VC_ENTITY_DECLARED = 62
0951:             new Constraint("4.1", "[68]", "4.1 VC: Entity Declared",
0952:             "Validity Constraint: Entity Declared\n" +
0953:             "[68] EntityRef ::= '&' Name ';'\n" +
0954:             "In a document with an external subset or external parameter entities with\n" +
0955:             "\"standalone='no'\", the Name given in the entity reference must match that in\n" +
0956:             "an entity declaration. For interoperability, valid documents should declare\n" +
0957:             "the entities amp, lt, gt, apos, quot, in the form specified in\n" +
0958:             "\"4.6 Predefined Entities\". The declaration of a parameter entity must\n" +
0959:             "precede any reference to it. Similarly, the declaration of a general entity\n" +
0960:             "must precede any reference to it which appears in a default value in an\n" +
0961:             "attribute-list declaration."),
0962:             // WFC_PARSED_ENTITY = 63
0963:             new Constraint("4.1", "[68]", "4.1 WFC: Parsed Entity",
0964:             "Well-Formedness Constraint: Parsed Entity\n" +
0965:             "[68] EntityRef ::= '&' Name ';'\n" +
0966:             "An entity reference must not contain the name of an unparsed entity.\n" +
0967:             "Unparsed entities may be referred to only in attribute values declared to be\n" +
0968:             "of type ENTITY or ENTITIES."),
0969:             // WFC_NO_EXTERNAL_ENTITY_REFERENCES = 64
0970:             new Constraint("3.1 2.3", "[41] [10]", "4.1 WFC: No External Entity References",
0971:             "Well-Formedness Constraint: No External Entity References\n" +
0972:             "[41] Attribute ::= Name Eq AttValue\n" +
0973:             "[10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"\n" +
0974:             "[68] EntityRef ::= '&' Name ';'\n" +
0975:             "Attribute values cannot contain direct or indirect entity references to\n" +
0976:             "external entities."),
0977:             // P33_INVALID = 65
0978:             new Constraint("2.12", "[33]", "2.12 (Productions 33 through 38 have been removed)",
0979:             "(Productions 33 through 38 have been removed)"),
0980:             // P18_UNTERMINATED = 66
0981:             new Constraint("2.7", "[18]", "2.7 [18] CDSect ::= CDStart CData CDEnd",
0982:             "[18] CDSect ::= CDStart CData CDEnd\n" +
0983:             "[19] CDStart ::= '<![CDATA['\n" +
0984:             "[20] CData ::= (Char* - (Char* ']]>' Char*))\n" +
0985:             "[21] CDEnd ::= ']]>'\n" +
0986:             "CDATA sections must be terminated by \"]]>\"."),
0987:             // VC_NO_DUPLICATE_TYPES = 67
0988:             new Constraint("3.2.2", "[51]", "3.2.2 VC: No Duplicate Types",
0989:             "Validity Constraint: No Duplicate Types\n" +
0990:             "[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'\n" +
0991:             "The same name must not appear more than once in a single mixed-content\n" +
0992:             "declaration."),
0993:             // P78_NOT_WELLFORMED = 68
0994:             new Constraint("4.3.2", "[78]", "4.3.2 [78] extParsedEnt ::= TextDecl? content",
0995:             "[78] extParsedEnt ::= TextDecl? content\n" +
0996:             "An internal general parsed entity is well-formed if its replacement text\n" +
0997:             "matches the production labeled content.\n\n" +
0998:             "A consequence of well-formedness in entities is that the logical and\n" +
0999:             "physical structures in an XML document are properly nested; no start-tag,\n" +
1000:             "end-tag, empty-element tag, element, comment, processing instruction,\n" +
1001:             "character reference, or entity reference can begin in one entity and end in\n" +
1002:             "another."),
1003:             // VC_ID_ATTRIBUTE_DEFAULT = 69
1004:             new Constraint("3.3.1 3.3", "[54] [53]", "3.3.1 VC: ID Attribute Default",
1005:             "Validity Constraint: ID Attribute Default\n" +
1006:             "[53] AttDef ::= S Name S AttType S DefaultDecl\n" +
1007:             "[54] AttType ::= StringType | TokenizedType | EnumeratedType\n" +
1008:             "[60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue)\n" +
1009:             "An ID attribute must have a declared default of #IMPLIED or #REQUIRED."),
1010:             // P53_NAME_REQUIRED = 70
1011:             new Constraint("3.3", "[53]", "3.3 [53] AttDef ::= S Name S AttType S DefaultDecl",
1012:             "[52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'\n" +
1013:             "[53] AttDef ::= S Name S AttType S DefaultDecl\n" +
1014:             "In an attribute-list declaration, the Name in the AttDef rule is the name\n" +
1015:             "of the attribute."),
1016:             // P53_ATTTYPE_REQUIRED = 71
1017:             new Constraint("3.3", "[53]", "3.3 [53] AttDef ::= S Name S AttType S DefaultDecl",
1018:             "[52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'\n" +
1019:             "[53] AttDef ::= S Name S AttType S DefaultDecl\n" +
1020:             "."),
1021:             // P81_REQUIRED = 72
1022:             new Constraint("4.3.3", "[81]", "4.3.3 [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*",
1023:             "[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n" +
1024:             "Parsed entities which are stored in an encoding other than UTF-8 or\n" +
1025:             "UTF-16 must begin with an XML declaration or a text declaration that\n" +
1026:             "contains an encoding declaration."),
1027:             // WFC_NO_RECURSION = 73
1028:             new Constraint("4.1", "[68]", "4.1 WFC: No Recursion",
1029:             "Well-Formedness Constraint: No Recursion\n" +
1030:             "[68] EntityRef ::= '&' Name ';'\n" +
1031:             "[69] PEReference ::= '%' Name ';'\n" +
1032:             "A parsed entity must not contain a recursive reference to itself, either\n" +
1033:             "directly or indirectly."),
1034:             // VC_PROPER_DECLARATION_PE_NESTING = 74
1035:             new Constraint("2.8", "[29]", "2.8 VC: Proper Declaration/PE Nesting",
1036:             "Validity Constraint: Proper Declaration/PE Nesting\n" +
1037:             "[29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment\n" +
1038:             "Parameter-entity replacement text must be properly nested with markup\n" +
1039:             "declarations. That is to say, if either the first character or the last\n" +
1040:             "character of a markup declaration (markupdecl above) is contained in the\n" +
1041:             "replacement text for a parameter-entity reference, both must be contained in\n" +
1042:             "the same replacement text."),
1043:             // VC_PROPER_GROUP_PE_NESTING = 75
1044:             new Constraint("3.2.1", "[47]", "3.2.1 VC: Proper Group/PE Nesting",
1045:             "Validity Constraint: Proper Group/PE Nesting\n" +
1046:             "[47] children ::= (choice | seq) ('?' | '*' | '+')?\n" +
1047:             "[48] cp ::= (Name | choice | seq) ('?' | '*' | '+')?\n" +
1048:             "[49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')'\n" +
1049:             "[50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')'\n" +
1050:             "[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'\n" +
1051:             "Parameter-entity replacement text must be properly nested with parenthetized\n" +
1052:             "groups. That is to say, if either of the opening or closing parentheses in a\n" +
1053:             "choice, seq, or Mixed construct is contained in the replacement text for a\n" +
1054:             "parameter entity, both must be contained in the same replacement text."),
1055:             // VC_ID = 76
1056:             new Constraint("3.3.1", "[56]", "3.3.1 VC: ID",
1057:             "Validity Constraint: ID\n" +
1058:             "[56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'\n" +
1059:             "Values of type ID must match the Name production. A name must not appear\n" +
1060:             "more than once in an XML document as a value of this type; i.e., ID values\n" +
1061:             "must uniquely identify the elements which bear them."),
1062:             // VC_ENTITY_NAME = 77
1063:             new Constraint("3.3.1", "[56]", "3.3.1 VC: Entity Name",
1064:             "Validity Constraint: Entity Name\n" +
1065:             "[56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'\n" +
1066:             "Values of type ENTITY must match the Name production, values of type\n" +
1067:             "ENTITIES must match Names; each Name must match the name of an unparsed\n" +
1068:             "entity declared in the DTD."),
1069:             // VC_ATTRIBUTE_VALUE_TYPE = 78
1070:             new Constraint("3.1", "[41]", "3.1 VC: Attribute Value Type",
1071:             "Validity Constraint: Attribute Value Type\n" +
1072:             "[41] Attribute ::= Name Eq AttValue\n" +
1073:             "The attribute must have been declared; the value must be of the type\n" +
1074:             "declared for it."),
1075:             // VC_ELEMENT_VALID = 79
1076:             new Constraint("3", "[39]", "3 VC: Element Valid",
1077:             "Validity Constraint: Element Valid\n" +
1078:             "[39] element ::= EmptyElemTag | STag content ETag\n" +
1079:             "An element is valid if there is a declaration matching elementdecl where the\n" +
1080:             "Name matches the element type, and one of the following holds:\n\n" +
1081:             "  1. The declaration matches EMPTY and the element has no content.\n" +
1082:             "  2. The declaration matches children and the sequence of child elements\n" +
1083:             "     belongs to the language generated by the regular expression in the\n" +
1084:             "     content model, with optional white space (characters matching the\n" +
1085:             "     nonterminal S) between each pair of child elements.\n" +
1086:             "  3. The declaration matches Mixed and the content consists of character\n" +
1087:             "     data and child elements whose types match names in the content model.\n" +
1088:             "  4. The declaration matches ANY, and the types of any child elements have\n" +
1089:             "     been declared."),
1090:             // VC_STANDALONE_DOCUMENT_DECLARATION = 80
1091:             new Constraint("2.9", "[32]", "2.9 VC: Standalone Document Declaration",
1092:             "Validity Constraint: Standalone Document Declaration\n" +
1093:             "[32] SDDecl ::= S 'standalone' Eq ((\"'\" ('yes' | 'no') \"'\") | ('\"' ('yes' | 'no') '\"'))\n" +
1094:             "The standalone document declaration must have the value \"no\" if any external\n" +
1095:             "markup declarations contain declarations of:\n\n" +
1096:             "   * attributes with default values, if elements to which these attributes\n" +
1097:             "     apply appear in the document without specifications of values for these\n" +
1098:             "     attributes, or\n" +
1099:             "   * entities (other than amp, lt, gt, apos, quot), if references to those\n" +
1100:             "     entities appear in the document, or\n" +
1101:             "   * attributes with values subject to normalization, where the attribute\n" +
1102:             "     appears in the document with a value which will change as a result of\n" +
1103:             "     normalization, or\n" +
1104:             "   * element types with element content, if white space occurs directly\n" +
1105:             "     within any instance of those types."),
1106:             // VC_ONE_ID_PER_ELEMENT_TYPE = 81
1107:             new Constraint("3.3.1", "[56]", "3.3.1 VC: One ID per Element Type",
1108:             "Validity Constraint: One ID per Element Type\n" +
1109:             "[56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'\n" +
1110:             "No element type may have more than one ID attribute specified."),
1111:             // VC_UNIQUE_ELEMENT_TYPE_DECLARATION = 82
1112:             new Constraint("3.2", "[45]", "3.2 VC: Unique Element Type Declaration",
1113:             "Validity Constraint: Unique Element Type Declaration\n" +
1114:             "[45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'\n" +
1115:             "No element type may be declared more than once."),
1116:             // P45_UNDECLARED_ELEMENT_IN_CONTENTSPEC = 83
1117:             new Constraint("3.2", "[45]", "3.2 [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'",
1118:             "[45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'\n" +
1119:             "At user option, an XML processor may issue a warning when a declaration\n" +
1120:             "mentions an element type for which no declaration is provided, but this\n" +
1121:             "is not an error."),
1122:
1123:             // VC_NOTATION_ATTRIBUTES = 84
1124:             new Constraint("?.?", "[??]", "", ""),
1125:             // P53_DUPLICATE = 85
1126:             new Constraint("?.?", "[??]", "", ""),
1127:             // VC_ENUMERATION = 86
1128:             new Constraint("?.?", "[??]", "", ""),
1129:             // VC_FIXED_ATTRIBUTE_DEFAULT = 87
1130:             new Constraint("?.?", "[??]", "", ""),
1131:             // VC_REQUIRED_ATTRIBUTE = 88
1132:             new Constraint("?.?", "[??]", "", ""),
1133:             // VC_NOTATION_DECLARED = 89
1134:             new Constraint("?.?", "[??]", "", ""),
1135:             // P58_NAME_REQUIRED = 90
1136:             new Constraint("?.?", "[??]", "", ""),
1137:             // P58_UNTERMINATED = 91
1138:             new Constraint("?.?", "[??]", "", ""),
1139:             // P59_NMTOKEN_REQUIRED = 92
1140:             new Constraint("?.?", "[??]", "", ""),
1141:             // P59_UNTERMINATED = 93
1142:             new Constraint("?.?", "[??]", "", ""),
1143:             // P70_SPACE = 94
1144:             new Constraint("?.?", "[??]", "", ""),
1145:             // P70_REQUIRED_NAME = 95
1146:             new Constraint("?.?", "[??]", "", ""),
1147:             // P70_REQUIRED_SPACE = 96
1148:             new Constraint("?.?", "[??]", "", ""),
1149:             // P71_UNTERMINATED = 97
1150:             new Constraint("?.?", "[??]", "", ""),
1151:             // P72_SPACE = 98
1152:             new Constraint("?.?", "[??]", "", ""),
1153:             // P72_UNTERMINATED = 99
1154:             new Constraint("?.?", "[??]", "", ""),
1155:             // P76_REQUIRED = 100
1156:             new Constraint("?.?", "[??]", "", ""),
1157:             // P82_NAME_REQUIRED = 101
1158:             new Constraint("?.?", "[??]", "", ""),
1159:             // P82_SPACE_REQUIRED = 102
1160:             new Constraint("?.?", "[??]", "", ""),
1161:             // P82_UNTERMINATED = 103
1162:             new Constraint("?.?", "[??]", "", ""),
1163:             // P14_INVALID = 104
1164:             new Constraint("?.?", "[??]", "", ""),
1165:             // P16_PITARGET_REQUIRED = 105
1166:             new Constraint("?.?", "[??]", "", ""),
1167:             // P16_REQUIRED = 106
1168:             new Constraint("?.?", "[??]", "", ""),
1169:             // P1_ELEMENT_REQUIRED = 107
1170:             new Constraint("?.?", "[??]", "", ""),
1171:             // P22_NOT_RECOGNIZED = 108
1172:             new Constraint("?.?", "[??]", "", ""),
1173:             // P27_NOT_RECOGNIZED = 109
1174:             new Constraint("?.?", "[??]", "", ""),
1175:             // P43_NOT_RECOGNIZED = 110
1176:             new Constraint("?.?", "[??]", "", ""),
1177:             // P52_ELEMENT_TYPE_REQUIRED = 111
1178:             new Constraint("?.?", "[??]", "", ""),
1179:             // P52_SPACE_REQUIRED = 112
1180:             new Constraint("?.?", "[??]", "", ""),
1181:             // P53_SPACE_REQUIRED = 113
1182:             new Constraint("?.?", "[??]", "", ""),
1183:             // P58_OPEN_PAREN_REQUIRED = 114
1184:             new Constraint("?.?", "[??]", "", ""),
1185:             // P58_SPACE_REQUIRED = 115
1186:             new Constraint("?.?", "[??]", "", ""),
1187:             // P60_SPACE_REQUIRED = 116
1188:             new Constraint("?.?", "[??]", "", ""),
1189:             // S2_10_DECLARATION_ILLEGAL = 117
1190:             new Constraint("?.?", "[??]", "", ""),
1191:             // P39_ELEMENT_TYPE_REQUIRED = 118
1192:             new Constraint("?.?", "[??]", "", ""),
1193:             // P28_ROOT_ELEMENT_TYPE_REQUIRED = 119
1194:             new Constraint("?.?", "[??]", "", ""),
1195:             // P28_SPACE_REQUIRED = 120
1196:             new Constraint("?.?", "[??]", "", ""),
1197:             // P28_UNTERMINATED = 121
1198:             new Constraint("?.?", "[??]", "", ""),
1199:             // P29_NOT_RECOGNIZED = 122
1200:             new Constraint("?.?", "[??]", "", ""),
1201:             // P45_CONTENTSPEC_REQUIRED = 123
1202:             new Constraint("?.?", "[??]", "", ""),
1203:             // P45_ELEMENT_TYPE_REQUIRED = 124
1204:             new Constraint("?.?", "[??]", "", ""),
1205:             // P45_SPACE_REQUIRED = 125
1206:             new Constraint("?.?", "[??]", "", ""),
1207:             // P45_UNTERMINATED = 126
1208:             new Constraint("?.?", "[??]", "", ""),
1209:             // P47_CLOSE_PAREN_REQUIRED = 127
1210:             new Constraint("?.?", "[??]", "", ""),
1211:             // P47_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED = 128
1212:             new Constraint("?.?", "[??]", "", ""),
1213:             // P51_CLOSE_PAREN_REQUIRED = 129
1214:             new Constraint("?.?", "[??]", "", ""),
1215:             // P51_ELEMENT_TYPE_REQUIRED = 130
1216:             new Constraint("?.?", "[??]", "", ""),
1217:             // P75_SPACE_REQUIRED = 131
1218:             new Constraint("?.?", "[??]", "", ""),
1219:             // P76_SPACE_REQUIRED = 132
1220:             new Constraint("?.?", "[??]", "", ""),
1221:             // P15_UNTERMINATED = 133
1222:             new Constraint("?.?", "[??]", "", ""),
1223:             // P16_UNTERMINATED = 134
1224:             new Constraint("?.?", "[??]", "", ""),
1225:             // P67_UNTERMINATED = 135
1226:             new Constraint("?.?", "[??]", "", ""),
1227:             // P10_UNTERMINATED = 136
1228:             new Constraint("?.?", "[??]", "", ""),
1229:             // P22_XMLDECL_MUST_BE_FIRST = 137
1230:             new Constraint("?.?", "[??]", "", ""),
1231:             // P30_TEXTDECL_MUST_BE_FIRST = 138
1232:             new Constraint("?.?", "[??]", "", ""),
1233:             // P5_INVALID_CHARACTER = 139
1234:             new Constraint("?.?", "[??]", "", ""),
1235:             // P11_UNTERMINATED = 140
1236:             new Constraint("?.?", "[??]", "", ""),
1237:             // P12_UNTERMINATED = 141
1238:             new Constraint("?.?", "[??]", "", ""),
1239:             // P11_URI_FRAGMENT = 142
1240:             new Constraint("?.?", "[??]", "", ""),
1241:             // VC_ONE_NOTATION_PER_ELEMENT_TYPE = 143
1242:             new Constraint("3.3.1", "[58]", "VC: One Notation per Element Type",
1243:             "Validity Constraint: One Notation per Element Type\n" +
1244:             "[58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'\n" +
1245:             "No element type may have more than one NOTATION attribute specified."),
1246:             // NC_PREFIX_DECLARED = 144
1247:             new Constraint("4.", "", "NC: Prefix Declared", ""),
1248:             // NC_NAMESPACE_NAME_EMPTY = 147
1249:             new Constraint("","","NC: Namespace name is empty",""),
1250:
1251:             // ...
1252:             new Constraint(null, null, null, null)
1253:             };
1254:             */
1255:        }
1256:
1257:        /*
1258:         class Constraint {
1259:         String sections;
1260:         String productions;
1261:         String shortDesc;
1262:         String longDesc;
1263:         Constraint(String sections, String productions, String shortDesc, String longDesc) {
1264:         this.sections = sections;
1265:         this.productions = productions;
1266:         this.shortDesc = shortDesc;
1267:         this.longDesc = longDesc;
1268:         }
1269:         }
1270:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.