Added Xerces-C++ 3.1.2

This commit is contained in:
sippeangelo
2015-12-01 10:23:50 +01:00
parent 65d3f3bc31
commit 1b478d3159
815 changed files with 262638 additions and 0 deletions
@@ -0,0 +1,312 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ICUMsgLoader.cpp 883612 2009-11-24 07:24:53Z borisk $
*/
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUniDefs.hpp>
#include <xercesc/util/Janitor.hpp>
#include "ICUMsgLoader.hpp"
#include "unicode/putil.h"
#include "unicode/uloc.h"
#include "unicode/udata.h"
#include "string.h"
#include <stdio.h>
#include <stdlib.h>
XERCES_CPP_NAMESPACE_BEGIN
// ---------------------------------------------------------------------------
// Local static methods
// ---------------------------------------------------------------------------
/*
* Resource Data Reference.
*
* The data is packaged as a dll (or .so or whatever, depending on the platform) that exports a data symbol.
* The application (this *.cpp) references that symbol here, and will pass the data address to ICU, which
* will then be able to fetch resources from the data.
*/
#define ENTRY_POINT xercesc_messages_3_1_dat
#define BUNDLE_NAME "xercesc_messages_3_1"
extern "C" void U_IMPORT *ENTRY_POINT;
/*
* Tell ICU where our resource data is located in memory. The data lives in the xercesc_nessages dll, and we just
* pass the address of an exported symbol from that library to ICU.
*/
static bool setAppDataOK = false;
static void setAppData()
{
static bool setAppDataDone = false;
if (setAppDataDone)
{
return;
}
else
{
setAppDataDone = true;
UErrorCode err = U_ZERO_ERROR;
udata_setAppData(BUNDLE_NAME, &ENTRY_POINT, &err);
if (U_SUCCESS(err))
{
setAppDataOK = true;
}
}
}
// ---------------------------------------------------------------------------
// Public Constructors and Destructor
// ---------------------------------------------------------------------------
ICUMsgLoader::ICUMsgLoader(const XMLCh* const msgDomain)
:fLocaleBundle(0)
,fDomainBundle(0)
{
/***
Validate msgDomain
***/
if (!XMLString::equals(msgDomain, XMLUni::fgXMLErrDomain) &&
!XMLString::equals(msgDomain, XMLUni::fgExceptDomain) &&
!XMLString::equals(msgDomain, XMLUni::fgXMLDOMMsgDomain) &&
!XMLString::equals(msgDomain, XMLUni::fgValidityDomain) )
{
XMLPlatformUtils::panic(PanicHandler::Panic_UnknownMsgDomain);
}
/***
Resolve domainName
***/
int index = XMLString::lastIndexOf(msgDomain, chForwardSlash);
char* domainName = XMLString::transcode(&(msgDomain[index + 1]), XMLPlatformUtils::fgMemoryManager);
ArrayJanitor<char> jan1(domainName, XMLPlatformUtils::fgMemoryManager);
/***
Location resolution priority
1. XMLMsgLoader::getNLSHome(), set by user through
XMLPlatformUtils::Initialize(), which provides user-specified
location where the message loader shall retrieve error messages.
2. environment var: XERCESC_NLS_HOME
3. path $XERCESCROOT/msg
***/
char locationBuf[1024];
memset(locationBuf, 0, sizeof locationBuf);
const char *nlsHome = XMLMsgLoader::getNLSHome();
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, U_FILE_SEP_STRING);
}
else
{
nlsHome = getenv("XERCESC_NLS_HOME");
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, U_FILE_SEP_STRING);
}
else
{
nlsHome = getenv("XERCESCROOT");
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, U_FILE_SEP_STRING);
strcat(locationBuf, "msg");
strcat(locationBuf, U_FILE_SEP_STRING);
}
else
{
/***
leave it to ICU to decide where to search
for the error message.
***/
setAppData();
}
}
}
/***
Open the locale-specific resource bundle
***/
strcat(locationBuf, BUNDLE_NAME);
UErrorCode err = U_ZERO_ERROR;
uloc_setDefault("root", &err); // in case user-specified locale unavailable
err = U_ZERO_ERROR;
fLocaleBundle = ures_open(locationBuf, XMLMsgLoader::getLocale(), &err);
if (!U_SUCCESS(err) || fLocaleBundle == NULL)
{
/***
in case user specified location does not work
try the dll
***/
if (strcmp(locationBuf, BUNDLE_NAME) !=0 )
{
setAppData();
err = U_ZERO_ERROR;
fLocaleBundle = ures_open(BUNDLE_NAME, XMLMsgLoader::getLocale(), &err);
if (!U_SUCCESS(err) || fLocaleBundle == NULL)
{
XMLPlatformUtils::panic(PanicHandler::Panic_CantLoadMsgDomain);
}
}
else
{
XMLPlatformUtils::panic(PanicHandler::Panic_CantLoadMsgDomain);
}
}
/***
Open the domain specific resource bundle within
the locale-specific resource bundle
***/
err = U_ZERO_ERROR;
fDomainBundle = ures_getByKey(fLocaleBundle, domainName, NULL, &err);
if (!U_SUCCESS(err) || fDomainBundle == NULL)
{
XMLPlatformUtils::panic(PanicHandler::Panic_CantLoadMsgDomain);
}
}
ICUMsgLoader::~ICUMsgLoader()
{
ures_close(fDomainBundle);
ures_close(fLocaleBundle);
}
// ---------------------------------------------------------------------------
// Implementation of the virtual message loader API
// ---------------------------------------------------------------------------
bool ICUMsgLoader::loadMsg( const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars)
{
UErrorCode err = U_ZERO_ERROR;
int32_t strLen = 0;
// Assuming array format
const UChar *name = ures_getStringByIndex(fDomainBundle, (int32_t)msgToLoad-1, &strLen, &err);
if (!U_SUCCESS(err) || (name == NULL))
{
return false;
}
int retStrLen = strLen > (int32_t)maxChars ? maxChars : strLen;
if (sizeof(UChar)==sizeof(XMLCh))
{
XMLString::moveChars(toFill, (XMLCh*)name, retStrLen);
toFill[retStrLen] = (XMLCh) 0;
}
else
{
XMLCh* retStr = toFill;
const UChar *srcPtr = name;
while (retStrLen--)
*retStr++ = *srcPtr++;
*retStr = 0;
}
return true;
}
bool ICUMsgLoader::loadMsg( const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2
, const XMLCh* const repText3
, const XMLCh* const repText4
, MemoryManager* const manager )
{
// Call the other version to load up the message
if (!loadMsg(msgToLoad, toFill, maxChars))
return false;
// And do the token replacement
XMLString::replaceTokens(toFill, maxChars, repText1, repText2, repText3, repText4, manager);
return true;
}
bool ICUMsgLoader::loadMsg( const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2
, const char* const repText3
, const char* const repText4
, MemoryManager * const manager)
{
//
// Transcode the provided parameters and call the other version,
// which will do the replacement work.
//
XMLCh* tmp1 = 0;
XMLCh* tmp2 = 0;
XMLCh* tmp3 = 0;
XMLCh* tmp4 = 0;
bool bRet = false;
if (repText1)
tmp1 = XMLString::transcode(repText1, manager);
if (repText2)
tmp2 = XMLString::transcode(repText2, manager);
if (repText3)
tmp3 = XMLString::transcode(repText3, manager);
if (repText4)
tmp4 = XMLString::transcode(repText4, manager);
bRet = loadMsg(msgToLoad, toFill, maxChars, tmp1, tmp2, tmp3, tmp4, manager);
if (tmp1)
manager->deallocate(tmp1);//delete [] tmp1;
if (tmp2)
manager->deallocate(tmp2);//delete [] tmp2;
if (tmp3)
manager->deallocate(tmp3);//delete [] tmp3;
if (tmp4)
manager->deallocate(tmp4);//delete [] tmp4;
return bRet;
}
XERCES_CPP_NAMESPACE_END
@@ -0,0 +1,107 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ICUMsgLoader.hpp 932887 2010-04-11 13:04:59Z borisk $
*/
#if !defined(XERCESC_INCLUDE_GUARD_ICUMSGLOADER_HPP)
#define XERCESC_INCLUDE_GUARD_ICUMSGLOADER_HPP
#include <xercesc/util/XMLMsgLoader.hpp>
#include "unicode/ures.h"
XERCES_CPP_NAMESPACE_BEGIN
//
// This is the ICU specific implementation of the XMLMsgLoader interface.
// This one uses ICU resource bundles to store its messages.
//
class XMLUTIL_EXPORT ICUMsgLoader : public XMLMsgLoader
{
public :
// -----------------------------------------------------------------------
// Public Constructors and Destructor
// -----------------------------------------------------------------------
ICUMsgLoader(const XMLCh* const msgDomain);
~ICUMsgLoader();
// -----------------------------------------------------------------------
// Implementation of the virtual message loader API
// -----------------------------------------------------------------------
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2 = 0
, const XMLCh* const repText3 = 0
, const XMLCh* const repText4 = 0
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2 = 0
, const char* const repText3 = 0
, const char* const repText4 = 0
, MemoryManager * const manager = XMLPlatformUtils::fgMemoryManager
);
private :
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
ICUMsgLoader();
ICUMsgLoader(const ICUMsgLoader&);
ICUMsgLoader& operator=(const ICUMsgLoader&);
// -----------------------------------------------------------------------
// Private data members
//
// fLocaleBundle
// pointer to the required locale specific resource bundle,
// or to the default locale resource bundle in case the required
// locale specific resource bundle unavailable.
//
// fDomainBundle
// pointer to the domain specific resource bundle with in the
// required locale specific (or default locale) resource bundle.
//
// -----------------------------------------------------------------------
UResourceBundle* fLocaleBundle;
UResourceBundle* fDomainBundle;
};
XERCES_CPP_NAMESPACE_END
#endif
@@ -0,0 +1 @@
root.res
@@ -0,0 +1,791 @@
root {
// an array
XMLErrors {
"W_ Start " ,
"notation '{0}' has already been declared" ,
"attribute '{0}' has already been declared for element '{1}'" ,
"encoding '{0}' from XML declaration or manually set contradicts the auto-sensed encoding; ignoring" ,
"element '{0}' is referenced in a content model but was never declared" ,
"element '{0}' is referenced in an ATTLIST but was never declared" ,
"{0}" ,
"unable to include document '{0}'" ,
"unable to open text file target '{0}'" ,
"unable to include resource '{0}'" ,
"W_ End " ,
"E_ Start " ,
"'{0}' is not allowed for the content of simpleType; only list, union, and restriction are allowed" ,
"globally-defined complex type must have a name" ,
"globally-declared attribute must have a name" ,
"attribute declaration must have name or 'ref' attribute" ,
"element declaration must have name or 'ref' attribute" ,
"group declaration must have name or a 'ref' attribute" ,
"attributeGroup declaration must have name or 'ref' attribute" ,
"anonymous complexType in element '{0}' has name" ,
"anonymous simpleType in element '{0}' has name" ,
"content of element declaration must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)" ,
"invalid content in simple type '{0}'; only list, union, and restriction are allowed" ,
"expected simpleType in list definition for type '{0}'" ,
"list, union, or restriction content is invalid for type '{0}'" ,
"invalid content in list definition for type '{0}'" ,
"expected simpleType in restriction definition for type '{0}'" ,
"facet '{0}' is already defined" ,
"expected simpleType in union definition for type '{0}'" ,
"content in simpleType definition is empty" ,
"expected restriction or extension in simpleContent definition" ,
"base attribute must be specified for restriction or extension definition" ,
"expected restriction or extension in complexContent definition" ,
"invalid content in 'schema' element" ,
"invalid content for type '{0}'" ,
"unknown simpleType '{0}'" ,
"unknown complexType '{0}'" ,
"prefix '{0}' can not be resolved to namespace URI" ,
"referenced element '{0}' not found" ,
"type '{0}:{1}' not found" ,
"attribute '{0}' not found" ,
"invalid element '{0}' in complex type definition" ,
"base type '{0}' not found" ,
"unable to create validator for '{0}'" ,
"invalid element following simpleContent definition in complexType" ,
"invalid element following complexContent definition in complexType" ,
"attribute '{0}' cannot have both fixed and default values" ,
"attribute '{0}' with default value must be optional" ,
"attribute '{0}' declared more than once in the same scope" ,
"attribute '{0}' cannot have both 'type' attribute and simpleType definition" ,
"simpleType '{0}:{1}' for attribute '{2}' not found" ,
"element '{0}' cannot have both fixed and default values" ,
"invalid {0} name '{1}'" ,
"element '{0}' cannot have both 'type' attribute and simpleType/complexType definition" ,
"element '{0}' has fixed or default value and must have mixed simple or simple content model" ,
"simpleType '{0}' that '{1}' extends has a value of the final attribute that does not permit extension" ,
"type '{0}' specified as the base in simpleContent definition must not have complex content" ,
"type '{0}' is a simple type and cannot be used in derivation by restriction in complexType definition" ,
"invalid element following restriction or extension definition in simpleContent" ,
"invalid element following restriction or extension definition in complexContent" ,
"duplicate annotation in type '{0}'" ,
"type '{0}' cannot be used in its own union, list, or restriction definition" ,
"block value '{0}' is invalid" ,
"final value '{0}' is invalid" ,
"element '{0}' cannot be part of the substitution group headed by '{1}'" ,
"element '{0}' has a type which does not derive from the type of the element at the head of the substitution group" ,
"element '{0}' declared more than once in the same scope" ,
"value '{0}' invalid for attribute '{1}'" ,
"attribute '{0}' has both 'ref' attribute and inline simpleType definition or 'form' or 'type' attribute" ,
"duplicate reference attribute '{0}:{1}' in complexType definition" ,
"derivation by restriction is forbidden by either base type '{0}' or globally" ,
"derivation by extension is forbidden by either base type '{0}' or globally" ,
"base type specified in complexContent definition must be a complex type" ,
"imported schema '{0}' has different target namespace '{1}'; expected '{2}'" ,
"'schemaLocation' attribute must be specified in element '{0}'" ,
"included schema '{0}' has different target namespace '{1}'" ,
"at most one annotation is allowed" ,
"content of attribute '{0}' must match (annotation?, simpleType?)" ,
"attribute '{0}' must appear in global {1} declarations" ,
"attribute '{0}' must appear in local {1} declarations" ,
"attribute '{0}' cannot appear in global {1} declarations" ,
"attribute '{0}' cannot appear in local {1} declarations" ,
"minOccurs value '{0}' must not be greater than maxOccurs value '{1}'" ,
"duplicate annotation in anyAttribute declaration" ,
"global {0} declaration must have name" ,
"circular definition in '{0}'" ,
"global type '{0}:{1}' declared more than once or also declared as {2}" ,
"global {0} '{1}' declared more than once" ,
"invalid value '{0}' for whiteSpace facet; expected 'collapse'" ,
"namespace of import declaration must be different from target namespace of importing schema" ,
"importing schema must have target namespace if namespace in import declaration is not present" ,
"element '{0}' cannot have value constraint '{1}' if its type is derived from ID" ,
"element/attribute '{0}' is of NOTATION type" ,
"element '{0}' has mixed content type and the content type's particle must be emptiable" ,
"complexType definition has empty content but base type is not empty or does not have emptiable particle" ,
"content types of base type '{0}' and derived type '{1}' must both be mixed or element-only" ,
"derived content type is not a valid restriction of base content type" ,
"derivation by extension or restriction is forbidden by either base type '{0}' or globally" ,
"item type definition must have variety of atomic or union where all member types must be atomic" ,
"group '{0}' must contain all, choice, or sequence compositor" ,
"content of attributeGroup '{0}' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?))" ,
"top-level compositor in a group must not have 'minOccurs' or 'maxOccurs' attribute" ,
"{0} '{1}:{2}' not found" ,
"group with the all compositor must only appear as content type of a complex type" ,
"group with the all compositor constituting the content type of a complex type must have both minOccurs and maxOccurs equal 1" ,
"element declaration in the all compositor must have minOccurs and maxOccurs equal 0 or 1" ,
"attribute '{0}' is already defined in base" ,
"intensional intersection of attribute wildcards must be expressible" ,
"base type does not have any attributes" ,
"attribute '{0}' has incompatible use value in the base" ,
"type of attribute '{0}' must be derived by restriction from type of the corresponding attribute in the base" ,
"attribute '{0}' does not have a fixed value or has a different fixed value from that of the base" ,
"attribute '{0}' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard" ,
"attribute wildcard is present in the derived type but not in the base" ,
"attribute wildcard in the derived type is not a valid subset of that in the base" ,
"attribute '{0}' cannot have different use value in the derived type if the base attribute use value is 'prohibited'" ,
"attribute wildcard in the derived type must be identical to or stricter than the one in the base" ,
"unexpected '{0}' in the content of the all compositor; only elements are allowed" ,
"redefined schema '{0}' has a different target namespace '{1}'" ,
"simpleType in redefine must have a restriction definition" ,
"simpleType base attribute in redefine must reference the original type with the same name" ,
"complexType in redefine must have a restriction or extension definition" ,
"complexType base attribute in redefine must reference the original type with the same name" ,
"group '{0}' must have minOccurs and maxOccurs equal 1" ,
"unable to find declaration in the schema being redefined corresponding to '{0}'" ,
"group declaration in redefine may only contain one reference to itself" ,
"attributeGroup declaration in redefine may only contain one reference to itself" ,
"redefine declaration cannot contain '{0}'" ,
"notation declaration '{0}:{1}' not found" ,
"more than one identity constraint has name '{0}'" ,
"identity constraint declaration must match (annotation?, selector, field+)" ,
"key reference declaration '{0}' refers to unknown key '{1}'" ,
"field cardinalities for keyref '{0}' and key '{1}' must match" ,
"XPath expression is missing or empty" ,
"fixed value in attribute reference is not set or differs from the fixed value of '{0}'" ,
"attribute '{0}' is of ID type or type derived from ID and cannot have default/fixed value constraint" ,
"attribute '{0}' is a subsequent attribute in this complex type with a type derived from ID" ,
"attribute '{0}' is a subsequent attribute in this attribute group with a type derived from ID" ,
"empty value illegal for 'targetNamespace' attribute; target namespace must be absent or contain non-empty value" ,
"{0}" ,
"'{0}' has already been included or redefined" ,
"namespace '{0}' is referenced without import declaration" ,
"all compositor that is part of a complex type definition must constitute the entire content of the definition" ,
"annotation can only contain appinfo and documentation declarations" ,
"invalid facet name '{0}'" ,
"root element name of XML Schema document must be 'schema'" ,
"circular substitution group in element '{0}'" ,
"element '{0}' must be from the XML Schema namespace" ,
"target namespace of attribute '{0}' cannot be http://www.w3.org/2001/XMLSchema-instance" ,
"invalid namespace declaration" ,
"namespace fix-up cannot be performed on DOM Level 1 node" ,
"more than one anyAttribute declaration found in complex type declaration" ,
"anyAttribute must not be followed by other declarations" ,
"E_ End " ,
"F_ Start " ,
"parser has encountered more than '{0}' entity expansions in the document; this is the limit imposed by the application" ,
"expected comment or CDATA section" ,
"attribute name expected" ,
"notation name expected" ,
"illegal repetition of elements in mixed content model" ,
"default attribute declaration expected" ,
"equal sign expected" ,
"element name expected" ,
"comment must start with <!--" ,
"invalid document structure" ,
"expected version, encoding, or standalone declaration" ,
"invalid XML version declaration" ,
"unsupported XML version '{0}'" ,
"unterminated XML declaration" ,
"invalid XML encoding declaration '{0}'" ,
"invalid standalone declaration" ,
"unterminated comment" ,
"processing instruction name expected" ,
"unterminated processing instruction" ,
"invalid character 0x{0}" ,
"unterminated start tag '{0}'" ,
"attribute value expected" ,
"unterminated end tag '{0}'" ,
"expected type for attribute '{0}' of element '{1}'" ,
"expected end of tag '{0}'" ,
"expected tag name, comment, PI, or other markup" ,
"invalid content after root element's end tag" ,
"comment expected" ,
"comment or processing instruction expected" ,
"whitespace expected" ,
"expected root element in DOCTYPE declaration" ,
"quoted string expected" ,
"public id expected" ,
"invalid character 0x{0} in public id" ,
"unterminated DOCTYPE declaration" ,
"invalid character 0x{0} in internal subset" ,
"unexpected whitespace" ,
"invalid character 0x{1} in attribute value '{0}'" ,
"markup declaration expected" ,
"TEXT declaration is illegal at this point" ,
"conditional section in internal subset" ,
"parameter entity name expected" ,
"unterminated entity declaration '{0}'" ,
"invalid character reference" ,
"unterminated character reference" ,
"expected entity name for reference" ,
"entity '{0}' not found" ,
"unparsed entity reference '{0}' is invalid at this point" ,
"unterminated entity reference '{0}'" ,
"recursive entity expansion '{0}'" ,
"partial markup in entity value" ,
"unterminated element declaration '{0}'" ,
"expected content specification for element '{0}'" ,
"'*' expected" ,
"mixed content model '{0}' not terminated properly" ,
"system or public id expected" ,
"unterminated notation declaration" ,
"expected ',', '|', or ')'" ,
"expected '|' or ')'" ,
"expected ',', '|', or ')' in content model of element '{0}'" ,
"expected enumeration value for attribute '{0}'" ,
"expected '|' or ')'" ,
"unterminated entity literal" ,
"unmatched end tag detected" ,
"'(' expected" ,
"attribute '{0}' is already specified for element '{1}'" ,
"'<' character cannot be used in attribute value '{0}'; use &lt; instead" ,
"leading surrogate character is not followed by a legal second character" ,
"expected ']]>' sequence to end conditional section" ,
"expected INCLUDE or IGNORE at this point" ,
"expected '[' to follow INCLUDE or IGNORE" ,
"unexpected end of entity '{0}'" ,
"parameter entity propagated out of internal/external subset" ,
"unmatched ']' character detected" ,
"parameter entity references are not allowed inside markup in internal subset" ,
"entity propagated out of the content section into miscellaneous" ,
"expected &# to be followed by a numeric character value" ,
"'[' expected" ,
"']]>' sequence is not allowed in character data" ,
"'--' sequence is illegal in comment" ,
"unterminated CDATA section" ,
"NDATA expected" ,
"NDATA is illegal for parameter entities" ,
"hex radix character references must use 'x', not 'X'" ,
"{0} declaration already seen" ,
"XML declarations must be in this order: version, encoding, standalone" ,
"external entity cannot be referred to from attribute value" ,
"XML or TEXT declaration must start with '<?xml ', not '<?XML '" ,
"expected literal entity value or public/system id" ,
"'{0}' is not a valid digit for the specified radix" ,
"input ended before all started tags were ended; last tag started is '{0}'" ,
"nested CDATA section illegal" ,
"prefix '{0}' can not be resolved to namespace URI" ,
"start and the end tags are in different entities" ,
"XML document cannot be empty" ,
"CDATA section is illegal outside the root element" ,
"unexpected trailing surrogate character" ,
"processing instruction cannot start with 'xml'" ,
"XML or TEXT declaration must start at line 1, column 1" ,
"version declaration is required in XML declaration" ,
"standalone declaration is only legal in the main XML entity" ,
"encoding declaration is required in TEXT declaration" ,
"colon is illegal in names when namespaces are enabled" ,
"{0}" ,
"schemaLocation does not contain namespace-location pairs" ,
"fatal error during schema scan" ,
"reference to external entity declaration '{0}' is illegal in standalone document" ,
"partial markup in parameter entity replacement text in complete declaration" ,
"invalid namespace value in prefix-namespace mapping '{0}'" ,
"prefix 'xmlns' cannot be explicitly bound to namespace" ,
"namespace for 'xmlns' cannot be explicitly bound to prefix" ,
"prefix 'xml' cannot be bound to namespace other than its canonical namespace" ,
"namespace for 'xml' cannot be bound to prefix other than 'xml'" ,
"element '{0}' cannot have 'xmlns' as its prefix" ,
"restriction must contain simpleType definition" ,
"invalid root element '{0}' in DOCTYPE declaration" ,
"invalid element name '{0}'" ,
"invalid attribute name '{0}'" ,
"invalid entity reference name '{0}'" ,
"DOCTYPE declaration already seen" ,
"fallback element is not a direct child of include element" ,
"include element without 'href' attribute" ,
"include element with XPointer specification; XPointer is not yet supported" ,
"invalid 'parse' attribute value '{0}'; expected 'text' or 'xml'" ,
"multiple fallback elements in document '{0}'" ,
"include failed and no fallback element found in document '{0}'" ,
"circular inclusion in document '{0}'" ,
"self-inclusion in document '{0}'" ,
"element '{0}' is not allowed as a child of include element" ,
"included notation '{0}' conflicts with notation already defined" ,
"included entity '{0}' conflicts with entity already defined" ,
"F_ End " ,
}
// an array
XMLValidity {
"E_ Start " ,
"no declaration found for element '{0}'" ,
"no declaration found for attribute '{0}'" ,
"notation '{0}' is referenced but was never declared" ,
"root element differs from that declared in DOCTYPE" ,
"missing required attribute '{0}'" ,
"element '{0}' is not allowed for content model '{1}'" ,
"ID attribute must be #IMPLIED or #REQUIRED" ,
"attribute cannot have empty value" ,
"element '{0}' has already been declared" ,
"element '{0}' has more than one ID attribute" ,
"ID value '{0}' has already been used" ,
"ID attribute '{0}' is referenced but was never declared" ,
"attribute '{0}' refers to undeclared notation '{1}'" ,
"element '{0}' is specified in DOCTYPE but was never declared" ,
"empty content is not valid for content model '{0}'" ,
"attribute '{0}' is not declared for element '{1}'" ,
"value '{0}' for attribute '{1}' of type ENTITY/ENTITIES must refer to external, unparsed entity" ,
"attribute '{0}' refers to unknown entity '{1}'" ,
"attribute of type ID/IDREF/IDREFS/ENTITY/ENTITIES/NOTATION cannot contain colon when namespaces are enabled" ,
"missing elements in content model '{0}'" ,
"no character data is allowed by content model" ,
"value '{0}' for attribute '{1}' does not match its type's defined enumeration or notation list" ,
"value '{0}' for attribute '{1}' is invalid Name or NMTOKEN value" ,
"attribute '{0}' does not allow multiple values" ,
"attribute '{0}' has value '{1}' that does not match its #FIXED value '{2}'" ,
"element types cannot be duplicated in mixed content model" ,
"{0} is not supported" ,
"'{0}' is not allowed in the {1} compositor; only element, group, choice, sequence, and any are allowed" ,
"base type '{0}' not found in '{1}' definition" ,
"{0} declaration with 'ref' attribute cannot have content" ,
"{0}" ,
"prohibited attribute '{0}' is present" ,
"illegal 'xml:space' declaration" ,
"schema document '{0}' has different target namespace from the one specified in instance document '{1}'" ,
"element '{0}' is of simple type and cannot have elements in its content" ,
"unable to find validator for simple type of element '{0}'" ,
"grammar not found for namespace '{0}'" ,
"{0}" ,
"'xsi:nil' specified for non-nillable element '{0}'" ,
"element '{0}' is nil and must be empty" ,
"content of element '{0}' differs from its declared fixed value" ,
"unable to find validator for simple type of attribute '{0}'" ,
"error during schema scan" ,
"element '{0}' must be qualified" ,
"element '{0}' must be unqualified" ,
"reference to external entity declaration '{0}' is not allowed in standalone document" ,
"attribute '{0}' in element '{1}' has default value and must be specified in standalone document" ,
"attribute '{0}' must not be changed by normalization in standalone document" ,
"whitespace must not occur between externally declared elements with element content in standalone document" ,
"entity '{0}' not found" ,
"partial markup in parameter entity replacement text" ,
"failed to validate '{0}'" ,
"complex type '{0}' violates the unique particle attribution rule in its components '{1}' and '{2}'" ,
"abstract type '{0}' cannot be used in 'xsi:type'" ,
"element '{0}' is abstract; use non-abstract member of its substitution group instead" ,
"type of element '{0}' is abstract; use 'xsi:type' to specify non-abstract type instead" ,
"type '{0}' specified in 'xsi:type' cannot be resolved" ,
"type '{0}' specified in 'xsi:type' does not derive from type of element '{1}'" ,
"element '{0}' does not permit substitution" ,
"complex type '{0}' does not permit substitution" ,
"attribute '{0}' must be qualified" ,
"attribute '{0}' must be unqualified" ,
"identity constraint field matches more than one value within the scope of its selector; field must match unique value" ,
"unknown identity constraint field" ,
"element '{0}' has identity constraint key with no value" ,
"element '{0}' does not have enough values for identity constraint key '{1}'" ,
"element '{0}' declares identity constraint key that matches nillable element" ,
"element '{0}' declares duplicate identity constraint unique values" ,
"element '{0}' declares duplicate identity constraint key values" ,
"keyref '{0}' refers to out of scope key/unique" ,
"identity constraint key for element '{0}' not found" ,
"non-whitespace characters are not allowed in schema declarations other than appinfo and documentation" ,
"element '{0}' declared EMPTY but has attribute '{1}' of type NOTATION" ,
"element '{0}' declared EMPTY and cannot have content, not even entity references, comments, PIs, or whitespaces" ,
"element '{0}' has more than one attribute of type NOTATION" ,
"attribute '{0}' has non-distinct token '{1}'" ,
"content model of element '{0}' does not allow escaped whitespaces" ,
"E_ End " ,
}
// an array
XML4CErrors {
"W_ Start " ,
"unable to open primary document entity '{0}'" ,
"W_ End " ,
"F_ Start " ,
"index is beyond array bounds" ,
"new array size is less than the old" ,
"index is beyond maximum attribute index" ,
"invalid AttType value" ,
"invalid DefAttType value" ,
"bit index is beyond set size" ,
"bit sets have different sizes" ,
"no more buffers available" ,
"buffer is not found in the manager's pool" ,
"NULL pointer" ,
"binary operation node has unary node type" ,
"content type must be mixed or children" ,
"PCDATA node is illegal at this point" ,
"unary operation node has binary node type" ,
"unknown content model type" ,
"unknown content spec type" ,
"parent element has no content spec node" ,
"invalid spec type for '{0}'" ,
"unknown creation reason value" ,
"element stack is empty" ,
"pop operation requested on empty stack" ,
"parent operation requested with only one element in stack" ,
"no more elements in enumerator" ,
"unable to open file '{0}'" ,
"unable to query file position" ,
"unable to close file" ,
"unable to seek to the end of file" ,
"unable to seek to the required position in file" ,
"unable to duplicate handle" ,
"unable to read data from file" ,
"unable to write data to file" ,
"unable to reset file position to the beginning" ,
"unable to get file size" ,
"unable to determine file base pathname" ,
"parsing in progress" ,
"DOCTYPE declaration was seen but installed validator does not support DTD" ,
"unable to open DTD document '{0}'" ,
"unable to open external entity '{0}'" ,
"unexpected end of input" ,
"zero hash modulus" ,
"hashing key produced invalid hash" ,
"no such key in hash table" ,
"unable to destroy mutex" ,
"internal error in NetAccessor" ,
"NetAccessor is unable to determine length of remote file" ,
"unable to initialize NetAccessor" ,
"unable to resolve host/address '{0}'" ,
"unable to create socket for URL '{0}'" ,
"unable to connect socket for URL '{0}'" ,
"unable to write to socket for URL '{0}'" ,
"unable to read from socket for URL '{0}'" ,
"specified HTTP method is not supported by NetAccessor" ,
"element '{0}' is already in pool" ,
"invalid pool element id" ,
"zero hash modulus" ,
"reader id not found" ,
"invalid auto encoding value" ,
"unable to decode first line in entity '{0}'" ,
"XML or TEXT declaration '{0}' cannot have NEL or lsep" ,
"current transcoding service does not support source offset information" ,
"EBCDIC file must provide encoding declaration" ,
"unable to open primary document entity '{0}'" ,
"unbalanced start/end tags" ,
"call to scanNext is illegal at this point" ,
"index is past top of stack" ,
"empty stack" ,
"target buffer cannot have zero max size" ,
"unsupported radix; expected 2, 8, 10, or 16" ,
"target buffer is too small" ,
"start index is past the end of string" ,
"string representation overflows output binary result" ,
"illegal string pool id" ,
"char 0x{0} is not representable in '{1}' encoding" ,
"invalid multi-byte sequence" ,
"code point 0x{0} is invalid for '{1}' encoding" ,
"leading surrogate followed by invalid trailing surrogate" ,
"unable to create converter for '{0}' encoding" ,
"malformed URL" ,
"unsupported protocol in URL" ,
"URL protocol '{0}' is unsupported" ,
"missing protocol prefix" ,
"expected '//' after protocol" ,
"base part of URL cannot be relative" ,
"port field must be 16-bit decimal number" ,
"invalid byte '{1}' at position {0} of a {2}-byte sequence" ,
"invalid bytes '{0}' and '{1}' of a 3-byte sequence" ,
"irregular bytes '{0}' and '{1}' of a 3-byte sequence" ,
"invalid bytes '{0}' and '{1}' of a 4-byte sequence" ,
"exceeded byte limit at byte '{0}' in a {1}-byte sequence" ,
"index is beyond vector bounds" ,
"invalid element id" ,
"internal subset is not allowed when reusing the grammar" ,
"unknown recognizer encoding" ,
"illegal character at offset {0} in regular expression '{1}'" ,
"invalid reference number" ,
"character expected after backslash" ,
"unexpected '?'; '(?:', '(?=', '(?!', '(?<', '(?#', or '(?>' expected" ,
"'(?<=' or '(?<!' expected" ,
"unterminated comment" ,
"')' expected" ,
"unexpected end of pattern in modifier group" ,
"':' expected" ,
"unexpected end of pattern in conditional group" ,
"back reference, anchor, lookahead, or lookbehind expected in conditional pattern" ,
"more than three choices in conditional group" ,
"character in the U+0040-U+005f range must follow '\c'" ,
"'{' expected before category character" ,
"property name must be closed with '}'" ,
"unexpected meta character" ,
"unknown property" ,
"POSIX character class must be closed with ':]'" ,
"unexpected end of pattern in character class" ,
"unknown name for POSIX character class" ,
"']' expected" ,
"'{0}' is invalid character range; use '\{1}' instead" ,
"'[' expected" ,
"')', '-[', '+[', or '&[' expected" ,
"range end code point '{0}' is less than start code point '{1}'" ,
"invalid Unicode hex notation" ,
"'\ x{' must be closed with '}'" ,
"invalid Unicode code point" ,
"anchor cannot be present at this point" ,
"'{0}' is invalid character escape sequence" ,
"invalid quantifier in '{0}'; digit expected" ,
"invalid quantifier in '{0}'; invalid quantity or missing '}'" ,
"invalid quantifier in '{0}'; digit or '}' expected" ,
"invalid quantifier in '{0}'; min quantity must be less than or equal max quantity" ,
"invalid quantifier in '{0}'; quantity value overflow" ,
"XML Schema was seen but installed validator does not support XML Schema" ,
"SubstitutionGroupComparator has no grammar resolver" ,
"invalid length value '{0}'" ,
"invalid maxLength value '{0}'" ,
"invalid minLength value '{0}'" ,
"length value '{0}' must be a non-negative integer" ,
"maxLength value '{0}' must be a non-negative integer" ,
"minLength value '{0}' must be a non-negative integer" ,
"both length and maxLength cannot be present at the same time" ,
"both length and minLength cannot be present at the same time" ,
"maxLength value '{0}' must be greater than minLength value '{1}'" ,
"invalid facet tag '{0}'" ,
"length value '{0}' must be equal to length value '{1}' in the base" ,
"minLength value '{0}' must be greater than or equal to minLength value '{1}' in the base" ,
"minLength value '{0}' must be less than or equal to maxLength value '{1}' in the base" ,
"maxLength value '{0}' must be less than or equal to maxLength value '{1}' in the base" ,
"maxLength value '{0}' must be greater than or equal to minLength value '{1}' in the base" ,
"length value '{0}' must be greater than or equal to minLength value '{1}' in the base" ,
"length value '{0}' must be less than or equal to maxLength value '{1}' in the base" ,
"minLength value '{0}' must be less than or equal to length value '{1}' in the base" ,
"maxLength value '{0}' must be greater than or equal to length value '{1}' in the base" ,
"enumeration value '{0}' must be from the value space of the base" ,
"whiteSpace value '{0}' must be one of 'preserve', 'replace', or 'collapse'" ,
"whiteSpace value is 'preserve' or 'replace' while base type whiteSpace value is 'collapse'" ,
"whiteSpace value is 'preserve' while base type whiteSpace value is 'replace'" ,
"invalid maxInclusive value '{0}'" ,
"invalid maxExclusive value '{0}'" ,
"invalid minInclusive value '{0}'" ,
"invalid minExclusive value '{0}'" ,
"invalid totalDigits value '{0}'" ,
"invalid fractionDigits value '{0}'" ,
"totalDigits value '{0}' must be a positive integer" ,
"fractionDigits value '{0}' must be a non-negative integer" ,
"both maxInclusive and maxExclusive cannot be present at the same time" ,
"both minInclusive and minExclusive cannot be present at the same time" ,
"maxExclusive value '{0}' must be greater than minExclusive value '{1}'" ,
"maxExclusive value '{0}' must be greater than minInclusive value '{1}'" ,
"maxInclusive value '{0}' must be greater than minExclusive value '{1}'" ,
"maxInclusive value '{0}' must be greater than minInclusive value '{1}'" ,
"totalDigits value '{0}' must be greater than fractionDigits value '{1}'" ,
"maxInclusive value '{0}' must be less than maxExclusive value '{1}' in the base" ,
"maxInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base" ,
"maxInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base" ,
"maxInclusive value '{0}' must be greater than minExclusive value '{1}' in the base" ,
"maxExclusive value '{0}' must be less than or equal to maxExclusive value '{1}' in the base" ,
"maxExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base" ,
"maxExclusive value '{0}' must be greater than minInclusive value '{1}' in the base" ,
"maxExclusive value '{0}' must be greater than minExclusive value '{1}' in the base" ,
"minExclusive value '{0}' must be less than maxExclusive value '{1}' in the base" ,
"minExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base" ,
"minExclusive value '{0}' must be greater than minInclusive value '{1}' in the base" ,
"minExclusive value '{0}' must be greater than minExclusive value '{1}' in the base" ,
"minInclusive value '{0}' must be less than maxExclusive value '{1}' in the base" ,
"minInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base" ,
"minInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base" ,
"minInclusive value '{0}' must be greater than minExclusive value '{1}' in the base" ,
"maxInclusive value '{0}' must be from the base type value space" ,
"maxExclusive value '{0}' must be from the base type value space" ,
"minInclusive value '{0}' must be from the base type value space" ,
"minExclusive value '{0}' must be from the base type value space" ,
"totalDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base" ,
"fractionDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base" ,
"fractionDigits value '{0}' must be less than or equal to fractionDigits value '{1}' in the base" ,
"maxInclusive value '{0}' must be equal to fixed maxInclusive value '{1}' in the base" ,
"maxExclusive value '{0}' must be equal to fixed maxExclusive value '{1}' in the base" ,
"minInclusive value '{0}' must be equal to fixed minInclusive value '{1}' in the base" ,
"minExclusive value '{0}' must be equal to fixed minExclusive value '{1}' in the base" ,
"totalDigits value '{0}' must be equal to fixed totalDigits value '{1}' in the base" ,
"fractionDigits value '{0}' must be equal to fixed fractionDigits value '{1}' in the base" ,
"maxLength value '{0}' must be equal to fixed maxLength value '{1}' in the base" ,
"minLength value '{0}' must be equal to fixed minLength value '{1}' in the base" ,
"whiteSpace value '{0}' must be equal to fixed whiteSpace value '{1}' in the base" ,
"internal error while processing fixed facet" ,
"list itemType is empty" ,
"union memberTypes is empty" ,
"restriction union base is empty" ,
"restriction union base is '{0}' instead of union" ,
"value '{0}' does not match regular expression facet '{1}'" ,
"value '{0}' is invalid Base64-encoded binary" ,
"value '{0}' is invalid Hex-encoded binary" ,
"value '{0}' has length '{1}' which exceeds maxLength facet value '{2}'" ,
"value '{0}' has length '{1}' which is less than minLength facet value '{2}'" ,
"value '{0}' has length '{1}' which is not equal to length facet value '{2}'" ,
"value '{0}' not in enumeration" ,
"value '{0}' has '{1}' total digits which exceeds totalDigits facet value '{2}'" ,
"value '{0}' has '{1}' fraction digits which exceeds fractionDigits facet value '{2}'" ,
"value '{0}' must be less than or equal to maxInclusive facet value '{1}'" ,
"value '{0}' must be less than maxExclusive facet value '{1}'" ,
"value '{0}' must be greater than or equal to minInclusive facet value '{1}'" ,
"value '{0}' must be greater than or equal to minExclusive facet value '{1}'" ,
"value '{0}' is not whitespace replaced" ,
"value '{0}' is not whitespace collapsed" ,
"value '{0}' is invalid NCName" ,
"value '{0}' is invalid {1}" ,
"ID value '{0}' is not unique" ,
"value '{0}' is invalid ENTITY" ,
"value '{0}' is invalid QName" ,
"NOTATION '{0}' must be valid QName" ,
"value '{0}' does not match any member types of the union" ,
"value '{0}' is invalid anyURI" ,
"empty string encountered" ,
"string contains only whitespaces" ,
"more than one decimal point encountered" ,
"invalid character encountered" ,
"NULL pointer encountered" ,
"unable to construct URI with NULL/empty {0}" ,
"{0} '{1}' can only be set for a generic URI" ,
"{0} contains invalid escape sequence '{1}'" ,
"{0} contains invalid character '{1}'" ,
"{0} cannot be NULL" ,
"'{1}' is not conformant to {0}" ,
"no scheme found in URI" ,
"{0} '{1}' may not be specified if host is not specified" ,
"{0} '{1}' may not be specified if path is not specified" ,
"port number '{0}' must be in the (0,65535) range" ,
"internal error while validating '{0}'" ,
"result not set" ,
"internal error in CompactRanges" ,
"mismatched type in MergeRanges" ,
"internal error in SubtractRanges" ,
"internal error in IntersectRanges" ,
"argument must be RangeToken" ,
"invalid category name '{0}'" ,
"keyword '{0}' not found" ,
"reference number must be greater than zero" ,
"option '{0}' unknown" ,
"unknown token type" ,
"unable to get RangeToken for '{0}'" ,
"not supported" ,
"invalid child index" ,
"replace pattern cannot match zero-length string" ,
"invalid replace pattern" ,
"enabling NEL option can only be done once per process" ,
"out of memory" ,
"operation is not allowed" ,
"selector cannot select attribute" ,
"'|' at the beginning of XPath expression is illegal" ,
"'||' in XPath expression is illegal" ,
"missing attribute name in XPath expression" ,
"unexpected XPath token; expected qname, any, or namespace test" ,
"prefix '{0}' used in XPath expression can not be resolved to namespace URI" ,
"'::' in XPath expression is illegal" ,
"expected step following 'child' token in XPath expression" ,
"expected step following '//' in XPath expression" ,
"expected step following '/' in XPath expression" ,
"'/' not allowed after '//' in XPath expression" ,
"'//' only allowed after '.' at the beginning of XPath expression" ,
"'/' at the beginning of XPath expression is illegal" ,
"root element selection is illegal in XPath expression" ,
"empty XPath expression" ,
"XPath expression cannot end with '|'" ,
"invalid character '{0}' in XPath expression" ,
"unsupported XPath token" ,
"fractional values not supported in XPath expression" ,
"invalid dateTime value '{0}'" ,
"missing 'T' separator in dateTime value '{0}'" ,
"invalid gDay value '{0}'" ,
"invalid gMonth value '{0}'" ,
"invalid gMonthDay value '{0}'" ,
"invalid duration value '{0}'" ,
"duration value '{0}' must start with '-' or 'P'" ,
"duration value '{0}' must contain 'P'" ,
"duration value '{0}' can contain '-' only as the first character" ,
"duration value '{0}' contains invalid text before 'T'" ,
"duration value '{0}' has no time component after 'T'" ,
"duration value '{0}' must have at least one component" ,
"duration value '{0}' must have at least one digit after '.'" ,
"incomplete date value '{0}'" ,
"invalid date value '{0}'" ,
"incomplete time value '{0}'" ,
"invalid time value '{0}'" ,
"expected fractional seconds after '.' in time value '{0}'" ,
"incomplete gYearMonth value '{0}'" ,
"invalid gYearMonth value '{0}'" ,
"invalid gYear value '{0}'" ,
"year value '{0}' must follow 'CCYY' format" ,
"invalid leading zero in gYear value '{0}'" ,
"month component missing in gYearMonth value '{0}'" ,
"time zone expected in '{0}'" ,
"unexpected text after 'Z' in time zone value '{0}'" ,
"invalid time zone value '{0}'" ,
"illegal year value '{0}'" ,
"month value '{0}' must be between 1 and 12" ,
"day value '{0}' must be between 1 and {1}" ,
"hours value '{0}' must be between 0 and 23" ,
"minutes value '{0}' must be between 0 and 59" ,
"seconds value '{0}' must be between 0 and 60" ,
"minutes value '{0}' must be between 0 and 59" ,
"derived by restriction complex type has content while base type is empty" ,
"namespace of element '{0}' is not allowed by wildcard in the base" ,
"occurrence range of element '{0}' is not a valid restriction of base element's range" ,
"element name/namespace in restriction does not match that of corresponding element in the base" ,
"element '{0}' is nillable in the restriction while it is non-nillable in the base" ,
"element '{0}' is either not fixed or is fixed to a different value compared to corresponding element in the base" ,
"disallowed substitutions for element '{0}' are not a superset of those for corresponding element in the base" ,
"element '{0}' has type that does not derive from type of corresponding element in the base" ,
"element '{0}' has fewer identity constraints compared to corresponding element '{1}' in the base" ,
"element '{0}' has identity constraint that does not appear in corresponding element '{1}' in the base" ,
"occurrence range of group is not a valid restriction of occurrence range of base group" ,
"no complete functional mapping between particles" ,
"forbidden restriction of any particle" ,
"forbidden restriction of all compositor" ,
"forbidden restriction of choice compositor" ,
"forbidden restriction of sequence compositor" ,
"occurrence range of wildcard is not a valid restriction of base wildcard's range" ,
"wildcard is not a subset of corresponding wildcard in the base" ,
"occurrence range of group is not a restriction of base wildcard's range" ,
"no complete functional mapping between particles" ,
"no complete functional mapping between particles" ,
"invalid content spec node type" ,
"NodeIDMap exceeds largest available size" ,
"ProtoType has NULL class name" ,
"ProtoType name length '{0}' differs from expected '{1}'" ,
"ProtoType name '{0}' differs from expected '{1}'" ,
"InputStream read '{0}' is less than required '{1}'" ,
"InputStream read '{0}' is beyond available buffer size '{1}'" ,
"storing violation" ,
"store buffer violation '{0}', '{1}'" ,
"object tag '{0}' exceeds load pool upper boundary '{1}'" ,
"load pool size '{0}' does not tally with object count '{1}'" ,
"loading violation" ,
"load buffer violation '{0}', '{1}'" ,
"invalid class index '{0}', '{1}'" ,
"invalid checkFillBuffer size '{0}'" ,
"invalid checkFlushBuffer size '{0}'" ,
"invalid NULL pointer encountered '{0}'" ,
"createObject fails" ,
"object count '{0}' exceeds upper boundary '{1}'" ,
"grammar pool is empty" ,
"grammar pool is not empty" ,
"string pool is not empty" ,
"storer level '{0}' does not match loader level '{1}'" ,
"undefined prefix in QName value '{0}'" ,
"F_ End " ,
}
// an array
XMLDOMMsg {
"F_ Start " ,
"dummy" ,
"index or size is negative, or greater than the allowed value" ,
"specified range of text does not fit into DOMString" ,
"attempt is made to insert a node where it is not permitted" ,
"node is used in a different document than the one that created it" ,
"invalid or illegal XML character" ,
"node does not support storing data" ,
"attempt is made to modify an object where modifications are not allowed" ,
"attempt is made to reference a node in a context where it does not exist" ,
"implementation does not support the requested type of object or operation" ,
"attempt is made to add an attribute that is already in use elsewhere" ,
"attempt is made to use an object that is not or is no longer usable" ,
"invalid or illegal string" ,
"attempt is made to modify the type of the underlying object" ,
"attempt is made to create or change an object in a way which is incorrect with respect to namespaces" ,
"parameter or requested operation is not supported by the underlying object" ,
"call to a method such as insertBefore or removeChild would make the node invalid with respect to document grammar" ,
"type of an object is incompatible with the expected type of the parameter associated with the object" ,
"dummy" ,
"boundary points of a range do not meet specific requirements" ,
"container of a range boundary point is set to a node of an invalid type or to a node with an ancestor of an invalid type" ,
"dummy" ,
"failed to load a document or an XML fragment using DOMLSParser" ,
"failed to serialize a DOM node using DOMLSSerializer" ,
"dummy" ,
"expression has incorrect syntax or contains XPath features not supported by the XML Schema XPath subset" ,
"requested result type not supported" ,
"no current result in the result object" ,
"nested CDATA sections" ,
"unrepresentable character" ,
"unrecognized node type" ,
"parsing in progress" ,
"parsing aborted by the user" ,
"parsing failed" ,
"F_ End " ,
}
}
@@ -0,0 +1,179 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: InMemMsgLoader.cpp 1663359 2015-03-02 17:01:52Z scantor $
*/
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include <xercesc/util/BitOps.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUni.hpp>
#include "InMemMsgLoader.hpp"
#include "XercesMessages_en_US.hpp"
XERCES_CPP_NAMESPACE_BEGIN
// ---------------------------------------------------------------------------
// Public Constructors and Destructor
// ---------------------------------------------------------------------------
InMemMsgLoader::InMemMsgLoader(const XMLCh* const msgDomain)
:fMsgDomain(0)
{
if (!XMLString::equals(msgDomain, XMLUni::fgXMLErrDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgExceptDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgXMLDOMMsgDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgValidityDomain))
{
XMLPlatformUtils::panic(PanicHandler::Panic_UnknownMsgDomain);
}
fMsgDomain = XMLString::replicate(msgDomain, XMLPlatformUtils::fgMemoryManager);
}
InMemMsgLoader::~InMemMsgLoader()
{
XMLPlatformUtils::fgMemoryManager->deallocate(fMsgDomain);//delete [] fMsgDomain;
}
// ---------------------------------------------------------------------------
// Implementation of the virtual message loader API
// ---------------------------------------------------------------------------
bool InMemMsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars)
{
//
// Just use the id to map into the correct array of messages. Then
// copy that to the caller's buffer.
//
// NOTE: The source text is in little endian form. So, if we are a
// big endian machine, flip them in the process.
//
XMLCh* endPtr = toFill + maxChars;
XMLCh* outPtr = toFill;
const XMLCh* srcPtr = 0;
if (XMLString::equals(fMsgDomain, XMLUni::fgXMLErrDomain))
{
if ( msgToLoad > gXMLErrArraySize)
return false;
else
srcPtr = gXMLErrArray[msgToLoad - 1];
}
else if (XMLString::equals(fMsgDomain, XMLUni::fgExceptDomain))
{
if ( msgToLoad > gXMLExceptArraySize)
return false;
else
srcPtr = gXMLExceptArray[msgToLoad - 1];
}
else if (XMLString::equals(fMsgDomain, XMLUni::fgValidityDomain))
{
if ( msgToLoad > gXMLValidityArraySize)
return false;
else
srcPtr = gXMLValidityArray[msgToLoad - 1];
}
else if (XMLString::equals(fMsgDomain, XMLUni::fgXMLDOMMsgDomain))
{
if ( msgToLoad > gXMLDOMMsgArraySize)
return false;
else
srcPtr = gXMLDOMMsgArray[msgToLoad - 1];
} else {
return false;
}
while (*srcPtr && (outPtr < endPtr))
{
*outPtr++ = *srcPtr++;
}
*outPtr = 0;
return true;
}
bool InMemMsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2
, const XMLCh* const repText3
, const XMLCh* const repText4
, MemoryManager* const manager)
{
// Call the other version to load up the message
if (!loadMsg(msgToLoad, toFill, maxChars))
return false;
// And do the token replacement
XMLString::replaceTokens(toFill, maxChars, repText1, repText2, repText3, repText4, manager);
return true;
}
bool InMemMsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2
, const char* const repText3
, const char* const repText4
, MemoryManager * const manager)
{
//
// Transcode the provided parameters and call the other version,
// which will do the replacement work.
//
XMLCh* tmp1 = 0;
XMLCh* tmp2 = 0;
XMLCh* tmp3 = 0;
XMLCh* tmp4 = 0;
bool bRet = false;
if (repText1)
tmp1 = XMLString::transcode(repText1, manager);
if (repText2)
tmp2 = XMLString::transcode(repText2, manager);
if (repText3)
tmp3 = XMLString::transcode(repText3, manager);
if (repText4)
tmp4 = XMLString::transcode(repText4, manager);
bRet = loadMsg(msgToLoad, toFill, maxChars, tmp1, tmp2, tmp3, tmp4, manager);
if (tmp1)
manager->deallocate(tmp1);//delete [] tmp1;
if (tmp2)
manager->deallocate(tmp2);//delete [] tmp2;
if (tmp3)
manager->deallocate(tmp3);//delete [] tmp3;
if (tmp4)
manager->deallocate(tmp4);//delete [] tmp4;
return bRet;
}
XERCES_CPP_NAMESPACE_END
@@ -0,0 +1,101 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: InMemMsgLoader.hpp 570552 2007-08-28 19:57:36Z amassari $
*/
#if !defined(XERCESC_INCLUDE_GUARD_INMEMMSGLOADER_HPP)
#define XERCESC_INCLUDE_GUARD_INMEMMSGLOADER_HPP
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
XERCES_CPP_NAMESPACE_BEGIN
//
// This is a simple in memory message loader implementation. For those
// folks who just want a single language and want something very fast and
// efficient, can basically just provide a couple of arrays of Unicode
// strings that can be looked up by the message id.
//
class XMLUTIL_EXPORT InMemMsgLoader : public XMLMsgLoader
{
public :
// -----------------------------------------------------------------------
// Public Constructors and Destructor
// -----------------------------------------------------------------------
InMemMsgLoader(const XMLCh* const msgDomain);
~InMemMsgLoader();
// -----------------------------------------------------------------------
// Implementation of the virtual message loader API
// -----------------------------------------------------------------------
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2 = 0
, const XMLCh* const repText3 = 0
, const XMLCh* const repText4 = 0
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2 = 0
, const char* const repText3 = 0
, const char* const repText4 = 0
, MemoryManager * const manager = XMLPlatformUtils::fgMemoryManager
);
private :
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
InMemMsgLoader();
InMemMsgLoader(const InMemMsgLoader&);
InMemMsgLoader& operator=(const InMemMsgLoader&);
// -----------------------------------------------------------------------
// Private data members
//
// fMsgDomain
// This is the message domain that we are for loading message from.
// -----------------------------------------------------------------------
XMLCh* fMsgDomain;
};
XERCES_CPP_NAMESPACE_END
#endif
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,84 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
prefix = @prefix@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
mkdir_p = @mkdir_p@
include $(top_srcdir)/version.incl
# No conventional target - this dir is resources only.
TARGET=
CLEANFILES += $(RESFILES)
# Resource shortname
PKGNAME=XercesMessages
# target file for resource bundle - this must be set, or 'make all' won't
# build any resources.
RESTARGET=$(top_builddir)/src/.libs/$(PKGNAME)_en_US.cat
# Resource files. Add new ones for additional locales here.
# keep in sync with the file RESLIST
RESFILES=$(PKGNAME)_en_US.cat
# list of targets that aren't actually created
.PHONY: report
check: all
all: $(RESTARGET) $(TARGET)
$(RESTARGET): $(RESFILES)
@echo building $(RESTARGET)
$(mkdir_p) $(top_builddir)/src/.libs
cp $(RESFILES) $(top_builddir)/src/.libs
# clean out files
distclean clean: $(CLEAN_SUBDIR)
-rm -f $(RESTARGET)
## resources
$(PKGNAME)_%.cat: $(srcdir)/$(PKGNAME)_%.Msg
@echo "generating $@"
gencat $@ $^
# for installing the library
# for installing the library
install: $(RESTARGET)
$(mkdir_p) $(prefix)/msg
$(INSTALL_PROGRAM) $(RESTARGET) $(prefix)/msg
uninstall:
-rm -f $(prefix)/msg/$(RESFILES)
# Needed to support "make dist"
distdir:
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='XercesMessages_en_US.Msg Makefile.in'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
@@ -0,0 +1,211 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: MsgCatalogLoader.cpp 614259 2008-01-22 16:59:21Z amassari $
*/
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUniDefs.hpp>
#include <xercesc/util/XMLUni.hpp>
#include "MsgCatalogLoader.hpp"
#include "XMLMsgCat_Ids.hpp"
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
XERCES_CPP_NAMESPACE_BEGIN
// ---------------------------------------------------------------------------
// Public Constructors and Destructor
// ---------------------------------------------------------------------------
MsgCatalogLoader::MsgCatalogLoader(const XMLCh* const msgDomain)
:fCatalogHandle(0)
,fMsgSet(0)
{
if (!XMLString::equals(msgDomain, XMLUni::fgXMLErrDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgExceptDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgXMLDOMMsgDomain)
&& !XMLString::equals(msgDomain, XMLUni::fgValidityDomain))
{
XMLPlatformUtils::panic(PanicHandler::Panic_UnknownMsgDomain);
}
// Prepare the path info
char locationBuf[1024];
memset(locationBuf, 0, sizeof locationBuf);
const char *nlsHome = XMLMsgLoader::getNLSHome();
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, "/");
}
else
{
nlsHome = getenv("XERCESC_NLS_HOME");
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, "/");
}
else
{
nlsHome = getenv("XERCESCROOT");
if (nlsHome)
{
strcpy(locationBuf, nlsHome);
strcat(locationBuf, "/msg/");
}
}
}
// Prepare user-specified locale specific cat file
char catuser[1024];
memset(catuser, 0, sizeof catuser);
strcpy(catuser, locationBuf);
strcat(catuser, "XercesMessages_");
strcat(catuser, XMLMsgLoader::getLocale());
strcat(catuser, ".cat");
char catdefault[1024];
memset(catdefault, 0, sizeof catdefault);
strcpy(catdefault, locationBuf);
strcat(catdefault, "XercesMessages_en_US.cat");
/**
* To open user-specified locale specific cat file
* and default cat file if necessary
*/
if ( ((fCatalogHandle=catopen(catuser, 0)) == (nl_catd)-1) &&
((fCatalogHandle=catopen(catdefault, 0)) == (nl_catd)-1) )
{
// Probably have to call panic here
printf("Could not open catalog:\n %s\n or %s\n", catuser, catdefault);
XMLPlatformUtils::panic(PanicHandler::Panic_CantLoadMsgDomain);
}
if (XMLString::equals(msgDomain, XMLUni::fgXMLErrDomain))
fMsgSet = CatId_XMLErrs;
else if (XMLString::equals(msgDomain, XMLUni::fgExceptDomain))
fMsgSet = CatId_XMLExcepts;
else if (XMLString::equals(msgDomain, XMLUni::fgValidityDomain))
fMsgSet = CatId_XMLValid;
else if (XMLString::equals(msgDomain, XMLUni::fgXMLDOMMsgDomain))
fMsgSet = CatId_XMLDOMMsg;
}
MsgCatalogLoader::~MsgCatalogLoader()
{
catclose(fCatalogHandle);
}
// ---------------------------------------------------------------------------
// Implementation of the virtual message loader API
// ---------------------------------------------------------------------------
bool MsgCatalogLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars)
{
char msgString[100];
sprintf(msgString, "Could not find message ID %d from message set %d\n", msgToLoad, fMsgSet);
char* catMessage = catgets( fCatalogHandle, fMsgSet, (int)msgToLoad, msgString);
// catgets returns a pointer to msgString if it fails to locate the message
// from the message catalog
if (XMLString::equals(catMessage, msgString))
return false;
else
{
XMLString::transcode(catMessage, toFill, maxChars);
return true;
}
}
bool MsgCatalogLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2
, const XMLCh* const repText3
, const XMLCh* const repText4
, MemoryManager* const manager)
{
// Call the other version to load up the message
if (!loadMsg(msgToLoad, toFill, maxChars))
return false;
// And do the token replacement
XMLString::replaceTokens(toFill, maxChars, repText1, repText2, repText3, repText4, manager);
return true;
}
bool MsgCatalogLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2
, const char* const repText3
, const char* const repText4
, MemoryManager * const manager)
{
//
// Transcode the provided parameters and call the other version,
// which will do the replacement work.
//
XMLCh* tmp1 = 0;
XMLCh* tmp2 = 0;
XMLCh* tmp3 = 0;
XMLCh* tmp4 = 0;
bool bRet = false;
if (repText1)
tmp1 = XMLString::transcode(repText1, manager);
if (repText2)
tmp2 = XMLString::transcode(repText2, manager);
if (repText3)
tmp3 = XMLString::transcode(repText3, manager);
if (repText4)
tmp4 = XMLString::transcode(repText4, manager);
bRet = loadMsg(msgToLoad, toFill, maxChars, tmp1, tmp2, tmp3, tmp4, manager);
if (tmp1)
manager->deallocate(tmp1);//delete [] tmp1;
if (tmp2)
manager->deallocate(tmp2);//delete [] tmp2;
if (tmp3)
manager->deallocate(tmp3);//delete [] tmp3;
if (tmp4)
manager->deallocate(tmp4);//delete [] tmp4;
return bRet;
}
XERCES_CPP_NAMESPACE_END
@@ -0,0 +1,106 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: MsgCatalogLoader.hpp 570552 2007-08-28 19:57:36Z amassari $
*/
#if !defined(XERCESC_INCLUDE_GUARD_MSGCATALOGLOADER_HPP)
#define XERCESC_INCLUDE_GUARD_MSGCATALOGLOADER_HPP
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
#include <nl_types.h>
XERCES_CPP_NAMESPACE_BEGIN
//
// This is a simple in Iconv RC message loader implementation.
//
class XMLUTIL_EXPORT MsgCatalogLoader : public XMLMsgLoader
{
public :
// -----------------------------------------------------------------------
// Public Constructors and Destructor
// -----------------------------------------------------------------------
MsgCatalogLoader(const XMLCh* const msgDomain);
~MsgCatalogLoader();
// -----------------------------------------------------------------------
// Implementation of the virtual message loader API
// -----------------------------------------------------------------------
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2 = 0
, const XMLCh* const repText3 = 0
, const XMLCh* const repText4 = 0
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2 = 0
, const char* const repText3 = 0
, const char* const repText4 = 0
, MemoryManager * const manager = XMLPlatformUtils::fgMemoryManager
);
private :
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
MsgCatalogLoader();
MsgCatalogLoader(const MsgCatalogLoader&);
MsgCatalogLoader& operator=(const MsgCatalogLoader&);
// -----------------------------------------------------------------------
// Private data members
//
// fModHandle
// This is our DLL module handle that we need in order to load
// resource messages. This is set during construction.
//
// fMsgSet
// This is the message set id for the error domain that this loader is for.
// -----------------------------------------------------------------------
nl_catd fCatalogHandle;
unsigned int fMsgSet;
};
XERCES_CPP_NAMESPACE_END
#endif
@@ -0,0 +1,16 @@
// ----------------------------------------------------------------
// This file was generated from the XML error message source.
// so do not edit this file directly!!
// ----------------------------------------------------------------
#include <xercesc/util/XercesDefs.hpp>
XERCES_CPP_NAMESPACE_BEGIN
const unsigned int CatId_XMLErrs = 1;
const unsigned int CatId_XMLValid = 2;
const unsigned int CatId_XMLExcepts = 3;
const unsigned int CatId_XMLDOMMsg = 4;
XERCES_CPP_NAMESPACE_END
@@ -0,0 +1,767 @@
$quote "
$set 1
2 notation '{0}' has already been declared
3 attribute '{0}' has already been declared for element '{1}'
4 encoding '{0}' from XML declaration or manually set contradicts the auto-sensed encoding; ignoring
5 element '{0}' is referenced in a content model but was never declared
6 element '{0}' is referenced in an ATTLIST but was never declared
7 {0}
8 unable to include document '{0}'
9 unable to open text file target '{0}'
10 unable to include resource '{0}'
13 '{0}' is not allowed for the content of simpleType; only list, union, and restriction are allowed
14 globally-defined complex type must have a name
15 globally-declared attribute must have a name
16 attribute declaration must have name or 'ref' attribute
17 element declaration must have name or 'ref' attribute
18 group declaration must have name or a 'ref' attribute
19 attributeGroup declaration must have name or 'ref' attribute
20 anonymous complexType in element '{0}' has name
21 anonymous simpleType in element '{0}' has name
22 content of element declaration must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)
23 invalid content in simple type '{0}'; only list, union, and restriction are allowed
24 expected simpleType in list definition for type '{0}'
25 list, union, or restriction content is invalid for type '{0}'
26 invalid content in list definition for type '{0}'
27 expected simpleType in restriction definition for type '{0}'
28 facet '{0}' is already defined
29 expected simpleType in union definition for type '{0}'
30 content in simpleType definition is empty
31 expected restriction or extension in simpleContent definition
32 base attribute must be specified for restriction or extension definition
33 expected restriction or extension in complexContent definition
34 invalid content in 'schema' element
35 invalid content for type '{0}'
36 unknown simpleType '{0}'
37 unknown complexType '{0}'
38 prefix '{0}' can not be resolved to namespace URI
39 referenced element '{0}' not found
40 type '{0}:{1}' not found
41 attribute '{0}' not found
42 invalid element '{0}' in complex type definition
43 base type '{0}' not found
44 unable to create validator for '{0}'
45 invalid element following simpleContent definition in complexType
46 invalid element following complexContent definition in complexType
47 attribute '{0}' cannot have both fixed and default values
48 attribute '{0}' with default value must be optional
49 attribute '{0}' declared more than once in the same scope
50 attribute '{0}' cannot have both 'type' attribute and simpleType definition
51 simpleType '{0}:{1}' for attribute '{2}' not found
52 element '{0}' cannot have both fixed and default values
53 invalid {0} name '{1}'
54 element '{0}' cannot have both 'type' attribute and simpleType/complexType definition
55 element '{0}' has fixed or default value and must have mixed simple or simple content model
56 simpleType '{0}' that '{1}' extends has a value of the final attribute that does not permit extension
57 type '{0}' specified as the base in simpleContent definition must not have complex content
58 type '{0}' is a simple type and cannot be used in derivation by restriction in complexType definition
59 invalid element following restriction or extension definition in simpleContent
60 invalid element following restriction or extension definition in complexContent
61 duplicate annotation in type '{0}'
62 type '{0}' cannot be used in its own union, list, or restriction definition
63 block value '{0}' is invalid
64 final value '{0}' is invalid
65 element '{0}' cannot be part of the substitution group headed by '{1}'
66 element '{0}' has a type which does not derive from the type of the element at the head of the substitution group
67 element '{0}' declared more than once in the same scope
68 value '{0}' invalid for attribute '{1}'
69 attribute '{0}' has both 'ref' attribute and inline simpleType definition or 'form' or 'type' attribute
70 duplicate reference attribute '{0}:{1}' in complexType definition
71 derivation by restriction is forbidden by either base type '{0}' or globally
72 derivation by extension is forbidden by either base type '{0}' or globally
73 base type specified in complexContent definition must be a complex type
74 imported schema '{0}' has different target namespace '{1}'; expected '{2}'
75 'schemaLocation' attribute must be specified in element '{0}'
76 included schema '{0}' has different target namespace '{1}'
77 at most one annotation is allowed
78 content of attribute '{0}' must match (annotation?, simpleType?)
79 attribute '{0}' must appear in global {1} declarations
80 attribute '{0}' must appear in local {1} declarations
81 attribute '{0}' cannot appear in global {1} declarations
82 attribute '{0}' cannot appear in local {1} declarations
83 minOccurs value '{0}' must not be greater than maxOccurs value '{1}'
84 duplicate annotation in anyAttribute declaration
85 global {0} declaration must have name
86 circular definition in '{0}'
87 global type '{0}:{1}' declared more than once or also declared as {2}
88 global {0} '{1}' declared more than once
89 invalid value '{0}' for whiteSpace facet; expected 'collapse'
90 namespace of import declaration must be different from target namespace of importing schema
91 importing schema must have target namespace if namespace in import declaration is not present
92 element '{0}' cannot have value constraint '{1}' if its type is derived from ID
93 element/attribute '{0}' is of NOTATION type
94 element '{0}' has mixed content type and the content type's particle must be emptiable
95 complexType definition has empty content but base type is not empty or does not have emptiable particle
96 content types of base type '{0}' and derived type '{1}' must both be mixed or element-only
97 derived content type is not a valid restriction of base content type
98 derivation by extension or restriction is forbidden by either base type '{0}' or globally
99 item type definition must have variety of atomic or union where all member types must be atomic
100 group '{0}' must contain all, choice, or sequence compositor
101 content of attributeGroup '{0}' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?))
102 top-level compositor in a group must not have 'minOccurs' or 'maxOccurs' attribute
103 {0} '{1}:{2}' not found
104 group with the all compositor must only appear as content type of a complex type
105 group with the all compositor constituting the content type of a complex type must have both minOccurs and maxOccurs equal 1
106 element declaration in the all compositor must have minOccurs and maxOccurs equal 0 or 1
107 attribute '{0}' is already defined in base
108 intensional intersection of attribute wildcards must be expressible
109 base type does not have any attributes
110 attribute '{0}' has incompatible use value in the base
111 type of attribute '{0}' must be derived by restriction from type of the corresponding attribute in the base
112 attribute '{0}' does not have a fixed value or has a different fixed value from that of the base
113 attribute '{0}' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard
114 attribute wildcard is present in the derived type but not in the base
115 attribute wildcard in the derived type is not a valid subset of that in the base
116 attribute '{0}' cannot have different use value in the derived type if the base attribute use value is 'prohibited'
117 attribute wildcard in the derived type must be identical to or stricter than the one in the base
118 unexpected '{0}' in the content of the all compositor; only elements are allowed
119 redefined schema '{0}' has a different target namespace '{1}'
120 simpleType in redefine must have a restriction definition
121 simpleType base attribute in redefine must reference the original type with the same name
122 complexType in redefine must have a restriction or extension definition
123 complexType base attribute in redefine must reference the original type with the same name
124 group '{0}' must have minOccurs and maxOccurs equal 1
125 unable to find declaration in the schema being redefined corresponding to '{0}'
126 group declaration in redefine may only contain one reference to itself
127 attributeGroup declaration in redefine may only contain one reference to itself
128 redefine declaration cannot contain '{0}'
129 notation declaration '{0}:{1}' not found
130 more than one identity constraint has name '{0}'
131 identity constraint declaration must match (annotation?, selector, field+)
132 key reference declaration '{0}' refers to unknown key '{1}'
133 field cardinalities for keyref '{0}' and key '{1}' must match
134 XPath expression is missing or empty
135 fixed value in attribute reference is not set or differs from the fixed value of '{0}'
136 attribute '{0}' is of ID type or type derived from ID and cannot have default/fixed value constraint
137 attribute '{0}' is a subsequent attribute in this complex type with a type derived from ID
138 attribute '{0}' is a subsequent attribute in this attribute group with a type derived from ID
139 empty value illegal for 'targetNamespace' attribute; target namespace must be absent or contain non-empty value
140 {0}
141 '{0}' has already been included or redefined
142 namespace '{0}' is referenced without import declaration
143 all compositor that is part of a complex type definition must constitute the entire content of the definition
144 annotation can only contain appinfo and documentation declarations
145 invalid facet name '{0}'
146 root element name of XML Schema document must be 'schema'
147 circular substitution group in element '{0}'
148 element '{0}' must be from the XML Schema namespace
149 target namespace of attribute '{0}' cannot be http://www.w3.org/2001/XMLSchema-instance
150 invalid namespace declaration
151 namespace fix-up cannot be performed on DOM Level 1 node
152 more than one anyAttribute declaration found in complex type declaration
153 anyAttribute must not be followed by other declarations
156 parser has encountered more than '{0}' entity expansions in the document; this is the limit imposed by the application
157 expected comment or CDATA section
158 attribute name expected
159 notation name expected
160 illegal repetition of elements in mixed content model
161 default attribute declaration expected
162 equal sign expected
163 element name expected
164 comment must start with <!--
165 invalid document structure
166 expected version, encoding, or standalone declaration
167 invalid XML version declaration
168 unsupported XML version '{0}'
169 unterminated XML declaration
170 invalid XML encoding declaration '{0}'
171 invalid standalone declaration
172 unterminated comment
173 processing instruction name expected
174 unterminated processing instruction
175 invalid character 0x{0}
176 unterminated start tag '{0}'
177 attribute value expected
178 unterminated end tag '{0}'
179 expected type for attribute '{0}' of element '{1}'
180 expected end of tag '{0}'
181 expected tag name, comment, PI, or other markup
182 invalid content after root element's end tag
183 comment expected
184 comment or processing instruction expected
185 whitespace expected
186 expected root element in DOCTYPE declaration
187 quoted string expected
188 public id expected
189 invalid character 0x{0} in public id
190 unterminated DOCTYPE declaration
191 invalid character 0x{0} in internal subset
192 unexpected whitespace
193 invalid character 0x{1} in attribute value '{0}'
194 markup declaration expected
195 TEXT declaration is illegal at this point
196 conditional section in internal subset
197 parameter entity name expected
198 unterminated entity declaration '{0}'
199 invalid character reference
200 unterminated character reference
201 expected entity name for reference
202 entity '{0}' not found
203 unparsed entity reference '{0}' is invalid at this point
204 unterminated entity reference '{0}'
205 recursive entity expansion '{0}'
206 partial markup in entity value
207 unterminated element declaration '{0}'
208 expected content specification for element '{0}'
209 '*' expected
210 mixed content model '{0}' not terminated properly
211 system or public id expected
212 unterminated notation declaration
213 expected ',', '|', or ')'
214 expected '|' or ')'
215 expected ',', '|', or ')' in content model of element '{0}'
216 expected enumeration value for attribute '{0}'
217 expected '|' or ')'
218 unterminated entity literal
219 unmatched end tag detected
220 '(' expected
221 attribute '{0}' is already specified for element '{1}'
222 '<' character cannot be used in attribute value '{0}'; use &lt; instead
223 leading surrogate character is not followed by a legal second character
224 expected ']]>' sequence to end conditional section
225 expected INCLUDE or IGNORE at this point
226 expected '[' to follow INCLUDE or IGNORE
227 unexpected end of entity '{0}'
228 parameter entity propagated out of internal/external subset
229 unmatched ']' character detected
230 parameter entity references are not allowed inside markup in internal subset
231 entity propagated out of the content section into miscellaneous
232 expected &# to be followed by a numeric character value
233 '[' expected
234 ']]>' sequence is not allowed in character data
235 '--' sequence is illegal in comment
236 unterminated CDATA section
237 NDATA expected
238 NDATA is illegal for parameter entities
239 hex radix character references must use 'x', not 'X'
240 {0} declaration already seen
241 XML declarations must be in this order: version, encoding, standalone
242 external entity cannot be referred to from attribute value
243 XML or TEXT declaration must start with '<?xml ', not '<?XML '
244 expected literal entity value or public/system id
245 '{0}' is not a valid digit for the specified radix
246 input ended before all started tags were ended; last tag started is '{0}'
247 nested CDATA section illegal
248 prefix '{0}' can not be resolved to namespace URI
249 start and the end tags are in different entities
250 XML document cannot be empty
251 CDATA section is illegal outside the root element
252 unexpected trailing surrogate character
253 processing instruction cannot start with 'xml'
254 XML or TEXT declaration must start at line 1, column 1
255 version declaration is required in XML declaration
256 standalone declaration is only legal in the main XML entity
257 encoding declaration is required in TEXT declaration
258 colon is illegal in names when namespaces are enabled
259 {0}
260 schemaLocation does not contain namespace-location pairs
261 fatal error during schema scan
262 reference to external entity declaration '{0}' is illegal in standalone document
263 partial markup in parameter entity replacement text in complete declaration
264 invalid namespace value in prefix-namespace mapping '{0}'
265 prefix 'xmlns' cannot be explicitly bound to namespace
266 namespace for 'xmlns' cannot be explicitly bound to prefix
267 prefix 'xml' cannot be bound to namespace other than its canonical namespace
268 namespace for 'xml' cannot be bound to prefix other than 'xml'
269 element '{0}' cannot have 'xmlns' as its prefix
270 restriction must contain simpleType definition
271 invalid root element '{0}' in DOCTYPE declaration
272 invalid element name '{0}'
273 invalid attribute name '{0}'
274 invalid entity reference name '{0}'
275 DOCTYPE declaration already seen
276 fallback element is not a direct child of include element
277 include element without 'href' attribute
278 include element with XPointer specification; XPointer is not yet supported
279 invalid 'parse' attribute value '{0}'; expected 'text' or 'xml'
280 multiple fallback elements in document '{0}'
281 include failed and no fallback element found in document '{0}'
282 circular inclusion in document '{0}'
283 self-inclusion in document '{0}'
284 element '{0}' is not allowed as a child of include element
285 included notation '{0}' conflicts with notation already defined
286 included entity '{0}' conflicts with entity already defined
$set 2
2 no declaration found for element '{0}'
3 no declaration found for attribute '{0}'
4 notation '{0}' is referenced but was never declared
5 root element differs from that declared in DOCTYPE
6 missing required attribute '{0}'
7 element '{0}' is not allowed for content model '{1}'
8 ID attribute must be #IMPLIED or #REQUIRED
9 attribute cannot have empty value
10 element '{0}' has already been declared
11 element '{0}' has more than one ID attribute
12 ID value '{0}' has already been used
13 ID attribute '{0}' is referenced but was never declared
14 attribute '{0}' refers to undeclared notation '{1}'
15 element '{0}' is specified in DOCTYPE but was never declared
16 empty content is not valid for content model '{0}'
17 attribute '{0}' is not declared for element '{1}'
18 value '{0}' for attribute '{1}' of type ENTITY/ENTITIES must refer to external, unparsed entity
19 attribute '{0}' refers to unknown entity '{1}'
20 attribute of type ID/IDREF/IDREFS/ENTITY/ENTITIES/NOTATION cannot contain colon when namespaces are enabled
21 missing elements in content model '{0}'
22 no character data is allowed by content model
23 value '{0}' for attribute '{1}' does not match its type's defined enumeration or notation list
24 value '{0}' for attribute '{1}' is invalid Name or NMTOKEN value
25 attribute '{0}' does not allow multiple values
26 attribute '{0}' has value '{1}' that does not match its #FIXED value '{2}'
27 element types cannot be duplicated in mixed content model
28 {0} is not supported
29 '{0}' is not allowed in the {1} compositor; only element, group, choice, sequence, and any are allowed
30 base type '{0}' not found in '{1}' definition
31 {0} declaration with 'ref' attribute cannot have content
32 {0}
33 prohibited attribute '{0}' is present
34 illegal 'xml:space' declaration
35 schema document '{0}' has different target namespace from the one specified in instance document '{1}'
36 element '{0}' is of simple type and cannot have elements in its content
37 unable to find validator for simple type of element '{0}'
38 grammar not found for namespace '{0}'
39 {0}
40 'xsi:nil' specified for non-nillable element '{0}'
41 element '{0}' is nil and must be empty
42 content of element '{0}' differs from its declared fixed value
43 unable to find validator for simple type of attribute '{0}'
44 error during schema scan
45 element '{0}' must be qualified
46 element '{0}' must be unqualified
47 reference to external entity declaration '{0}' is not allowed in standalone document
48 attribute '{0}' in element '{1}' has default value and must be specified in standalone document
49 attribute '{0}' must not be changed by normalization in standalone document
50 whitespace must not occur between externally declared elements with element content in standalone document
51 entity '{0}' not found
52 partial markup in parameter entity replacement text
53 failed to validate '{0}'
54 complex type '{0}' violates the unique particle attribution rule in its components '{1}' and '{2}'
55 abstract type '{0}' cannot be used in 'xsi:type'
56 element '{0}' is abstract; use non-abstract member of its substitution group instead
57 type of element '{0}' is abstract; use 'xsi:type' to specify non-abstract type instead
58 type '{0}' specified in 'xsi:type' cannot be resolved
59 type '{0}' specified in 'xsi:type' does not derive from type of element '{1}'
60 element '{0}' does not permit substitution
61 complex type '{0}' does not permit substitution
62 attribute '{0}' must be qualified
63 attribute '{0}' must be unqualified
64 identity constraint field matches more than one value within the scope of its selector; field must match unique value
65 unknown identity constraint field
66 element '{0}' has identity constraint key with no value
67 element '{0}' does not have enough values for identity constraint key '{1}'
68 element '{0}' declares identity constraint key that matches nillable element
69 element '{0}' declares duplicate identity constraint unique values
70 element '{0}' declares duplicate identity constraint key values
71 keyref '{0}' refers to out of scope key/unique
72 identity constraint key for element '{0}' not found
73 non-whitespace characters are not allowed in schema declarations other than appinfo and documentation
74 element '{0}' declared EMPTY but has attribute '{1}' of type NOTATION
75 element '{0}' declared EMPTY and cannot have content, not even entity references, comments, PIs, or whitespaces
76 element '{0}' has more than one attribute of type NOTATION
77 attribute '{0}' has non-distinct token '{1}'
78 content model of element '{0}' does not allow escaped whitespaces
$set 3
2 unable to open primary document entity '{0}'
5 index is beyond array bounds
6 new array size is less than the old
7 index is beyond maximum attribute index
8 invalid AttType value
9 invalid DefAttType value
10 bit index is beyond set size
11 bit sets have different sizes
12 no more buffers available
13 buffer is not found in the manager's pool
14 NULL pointer
15 binary operation node has unary node type
16 content type must be mixed or children
17 PCDATA node is illegal at this point
18 unary operation node has binary node type
19 unknown content model type
20 unknown content spec type
21 parent element has no content spec node
22 invalid spec type for '{0}'
23 unknown creation reason value
24 element stack is empty
25 pop operation requested on empty stack
26 parent operation requested with only one element in stack
27 no more elements in enumerator
28 unable to open file '{0}'
29 unable to query file position
30 unable to close file
31 unable to seek to the end of file
32 unable to seek to the required position in file
33 unable to duplicate handle
34 unable to read data from file
35 unable to write data to file
36 unable to reset file position to the beginning
37 unable to get file size
38 unable to determine file base pathname
39 parsing in progress
40 DOCTYPE declaration was seen but installed validator does not support DTD
41 unable to open DTD document '{0}'
42 unable to open external entity '{0}'
43 unexpected end of input
44 zero hash modulus
45 hashing key produced invalid hash
46 no such key in hash table
47 unable to destroy mutex
48 internal error in NetAccessor
49 NetAccessor is unable to determine length of remote file
50 unable to initialize NetAccessor
51 unable to resolve host/address '{0}'
52 unable to create socket for URL '{0}'
53 unable to connect socket for URL '{0}'
54 unable to write to socket for URL '{0}'
55 unable to read from socket for URL '{0}'
56 specified HTTP method is not supported by NetAccessor
57 element '{0}' is already in pool
58 invalid pool element id
59 zero hash modulus
60 reader id not found
61 invalid auto encoding value
62 unable to decode first line in entity '{0}'
63 XML or TEXT declaration '{0}' cannot have NEL or lsep
64 current transcoding service does not support source offset information
65 EBCDIC file must provide encoding declaration
66 unable to open primary document entity '{0}'
67 unbalanced start/end tags
68 call to scanNext is illegal at this point
69 index is past top of stack
70 empty stack
71 target buffer cannot have zero max size
72 unsupported radix; expected 2, 8, 10, or 16
73 target buffer is too small
74 start index is past the end of string
75 string representation overflows output binary result
76 illegal string pool id
77 char 0x{0} is not representable in '{1}' encoding
78 invalid multi-byte sequence
79 code point 0x{0} is invalid for '{1}' encoding
80 leading surrogate followed by invalid trailing surrogate
81 unable to create converter for '{0}' encoding
82 malformed URL
83 unsupported protocol in URL
84 URL protocol '{0}' is unsupported
85 missing protocol prefix
86 expected '//' after protocol
87 base part of URL cannot be relative
88 port field must be 16-bit decimal number
89 invalid byte '{1}' at position {0} of a {2}-byte sequence
90 invalid bytes '{0}' and '{1}' of a 3-byte sequence
91 irregular bytes '{0}' and '{1}' of a 3-byte sequence
92 invalid bytes '{0}' and '{1}' of a 4-byte sequence
93 exceeded byte limit at byte '{0}' in a {1}-byte sequence
94 index is beyond vector bounds
95 invalid element id
96 internal subset is not allowed when reusing the grammar
97 unknown recognizer encoding
98 illegal character at offset {0} in regular expression '{1}'
99 invalid reference number
100 character expected after backslash
101 unexpected '?'; '(?:', '(?=', '(?!', '(?<', '(?#', or '(?>' expected
102 '(?<=' or '(?<!' expected
103 unterminated comment
104 ')' expected
105 unexpected end of pattern in modifier group
106 ':' expected
107 unexpected end of pattern in conditional group
108 back reference, anchor, lookahead, or lookbehind expected in conditional pattern
109 more than three choices in conditional group
110 character in the U+0040-U+005f range must follow '\c'
111 '{' expected before category character
112 property name must be closed with '}'
113 unexpected meta character
114 unknown property
115 POSIX character class must be closed with ':]'
116 unexpected end of pattern in character class
117 unknown name for POSIX character class
118 ']' expected
119 '{0}' is invalid character range; use '\{1}' instead
120 '[' expected
121 ')', '-[', '+[', or '&[' expected
122 range end code point '{0}' is less than start code point '{1}'
123 invalid Unicode hex notation
124 '\ x{' must be closed with '}'
125 invalid Unicode code point
126 anchor cannot be present at this point
127 '{0}' is invalid character escape sequence
128 invalid quantifier in '{0}'; digit expected
129 invalid quantifier in '{0}'; invalid quantity or missing '}'
130 invalid quantifier in '{0}'; digit or '}' expected
131 invalid quantifier in '{0}'; min quantity must be less than or equal max quantity
132 invalid quantifier in '{0}'; quantity value overflow
133 XML Schema was seen but installed validator does not support XML Schema
134 SubstitutionGroupComparator has no grammar resolver
135 invalid length value '{0}'
136 invalid maxLength value '{0}'
137 invalid minLength value '{0}'
138 length value '{0}' must be a non-negative integer
139 maxLength value '{0}' must be a non-negative integer
140 minLength value '{0}' must be a non-negative integer
141 both length and maxLength cannot be present at the same time
142 both length and minLength cannot be present at the same time
143 maxLength value '{0}' must be greater than minLength value '{1}'
144 invalid facet tag '{0}'
145 length value '{0}' must be equal to length value '{1}' in the base
146 minLength value '{0}' must be greater than or equal to minLength value '{1}' in the base
147 minLength value '{0}' must be less than or equal to maxLength value '{1}' in the base
148 maxLength value '{0}' must be less than or equal to maxLength value '{1}' in the base
149 maxLength value '{0}' must be greater than or equal to minLength value '{1}' in the base
150 length value '{0}' must be greater than or equal to minLength value '{1}' in the base
151 length value '{0}' must be less than or equal to maxLength value '{1}' in the base
152 minLength value '{0}' must be less than or equal to length value '{1}' in the base
153 maxLength value '{0}' must be greater than or equal to length value '{1}' in the base
154 enumeration value '{0}' must be from the value space of the base
155 whiteSpace value '{0}' must be one of 'preserve', 'replace', or 'collapse'
156 whiteSpace value is 'preserve' or 'replace' while base type whiteSpace value is 'collapse'
157 whiteSpace value is 'preserve' while base type whiteSpace value is 'replace'
158 invalid maxInclusive value '{0}'
159 invalid maxExclusive value '{0}'
160 invalid minInclusive value '{0}'
161 invalid minExclusive value '{0}'
162 invalid totalDigits value '{0}'
163 invalid fractionDigits value '{0}'
164 totalDigits value '{0}' must be a positive integer
165 fractionDigits value '{0}' must be a non-negative integer
166 both maxInclusive and maxExclusive cannot be present at the same time
167 both minInclusive and minExclusive cannot be present at the same time
168 maxExclusive value '{0}' must be greater than minExclusive value '{1}'
169 maxExclusive value '{0}' must be greater than minInclusive value '{1}'
170 maxInclusive value '{0}' must be greater than minExclusive value '{1}'
171 maxInclusive value '{0}' must be greater than minInclusive value '{1}'
172 totalDigits value '{0}' must be greater than fractionDigits value '{1}'
173 maxInclusive value '{0}' must be less than maxExclusive value '{1}' in the base
174 maxInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base
175 maxInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base
176 maxInclusive value '{0}' must be greater than minExclusive value '{1}' in the base
177 maxExclusive value '{0}' must be less than or equal to maxExclusive value '{1}' in the base
178 maxExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base
179 maxExclusive value '{0}' must be greater than minInclusive value '{1}' in the base
180 maxExclusive value '{0}' must be greater than minExclusive value '{1}' in the base
181 minExclusive value '{0}' must be less than maxExclusive value '{1}' in the base
182 minExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base
183 minExclusive value '{0}' must be greater than minInclusive value '{1}' in the base
184 minExclusive value '{0}' must be greater than minExclusive value '{1}' in the base
185 minInclusive value '{0}' must be less than maxExclusive value '{1}' in the base
186 minInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base
187 minInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base
188 minInclusive value '{0}' must be greater than minExclusive value '{1}' in the base
189 maxInclusive value '{0}' must be from the base type value space
190 maxExclusive value '{0}' must be from the base type value space
191 minInclusive value '{0}' must be from the base type value space
192 minExclusive value '{0}' must be from the base type value space
193 totalDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base
194 fractionDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base
195 fractionDigits value '{0}' must be less than or equal to fractionDigits value '{1}' in the base
196 maxInclusive value '{0}' must be equal to fixed maxInclusive value '{1}' in the base
197 maxExclusive value '{0}' must be equal to fixed maxExclusive value '{1}' in the base
198 minInclusive value '{0}' must be equal to fixed minInclusive value '{1}' in the base
199 minExclusive value '{0}' must be equal to fixed minExclusive value '{1}' in the base
200 totalDigits value '{0}' must be equal to fixed totalDigits value '{1}' in the base
201 fractionDigits value '{0}' must be equal to fixed fractionDigits value '{1}' in the base
202 maxLength value '{0}' must be equal to fixed maxLength value '{1}' in the base
203 minLength value '{0}' must be equal to fixed minLength value '{1}' in the base
204 whiteSpace value '{0}' must be equal to fixed whiteSpace value '{1}' in the base
205 internal error while processing fixed facet
206 list itemType is empty
207 union memberTypes is empty
208 restriction union base is empty
209 restriction union base is '{0}' instead of union
210 value '{0}' does not match regular expression facet '{1}'
211 value '{0}' is invalid Base64-encoded binary
212 value '{0}' is invalid Hex-encoded binary
213 value '{0}' has length '{1}' which exceeds maxLength facet value '{2}'
214 value '{0}' has length '{1}' which is less than minLength facet value '{2}'
215 value '{0}' has length '{1}' which is not equal to length facet value '{2}'
216 value '{0}' not in enumeration
217 value '{0}' has '{1}' total digits which exceeds totalDigits facet value '{2}'
218 value '{0}' has '{1}' fraction digits which exceeds fractionDigits facet value '{2}'
219 value '{0}' must be less than or equal to maxInclusive facet value '{1}'
220 value '{0}' must be less than maxExclusive facet value '{1}'
221 value '{0}' must be greater than or equal to minInclusive facet value '{1}'
222 value '{0}' must be greater than or equal to minExclusive facet value '{1}'
223 value '{0}' is not whitespace replaced
224 value '{0}' is not whitespace collapsed
225 value '{0}' is invalid NCName
226 value '{0}' is invalid {1}
227 ID value '{0}' is not unique
228 value '{0}' is invalid ENTITY
229 value '{0}' is invalid QName
230 NOTATION '{0}' must be valid QName
231 value '{0}' does not match any member types of the union
232 value '{0}' is invalid anyURI
233 empty string encountered
234 string contains only whitespaces
235 more than one decimal point encountered
236 invalid character encountered
237 NULL pointer encountered
238 unable to construct URI with NULL/empty {0}
239 {0} '{1}' can only be set for a generic URI
240 {0} contains invalid escape sequence '{1}'
241 {0} contains invalid character '{1}'
242 {0} cannot be NULL
243 '{1}' is not conformant to {0}
244 no scheme found in URI
245 {0} '{1}' may not be specified if host is not specified
246 {0} '{1}' may not be specified if path is not specified
247 port number '{0}' must be in the (0,65535) range
248 internal error while validating '{0}'
249 result not set
250 internal error in CompactRanges
251 mismatched type in MergeRanges
252 internal error in SubtractRanges
253 internal error in IntersectRanges
254 argument must be RangeToken
255 invalid category name '{0}'
256 keyword '{0}' not found
257 reference number must be greater than zero
258 option '{0}' unknown
259 unknown token type
260 unable to get RangeToken for '{0}'
261 not supported
262 invalid child index
263 replace pattern cannot match zero-length string
264 invalid replace pattern
265 enabling NEL option can only be done once per process
266 out of memory
267 operation is not allowed
268 selector cannot select attribute
269 '|' at the beginning of XPath expression is illegal
270 '||' in XPath expression is illegal
271 missing attribute name in XPath expression
272 unexpected XPath token; expected qname, any, or namespace test
273 prefix '{0}' used in XPath expression can not be resolved to namespace URI
274 '::' in XPath expression is illegal
275 expected step following 'child' token in XPath expression
276 expected step following '//' in XPath expression
277 expected step following '/' in XPath expression
278 '/' not allowed after '//' in XPath expression
279 '//' only allowed after '.' at the beginning of XPath expression
280 '/' at the beginning of XPath expression is illegal
281 root element selection is illegal in XPath expression
282 empty XPath expression
283 XPath expression cannot end with '|'
284 invalid character '{0}' in XPath expression
285 unsupported XPath token
286 fractional values not supported in XPath expression
287 invalid dateTime value '{0}'
288 missing 'T' separator in dateTime value '{0}'
289 invalid gDay value '{0}'
290 invalid gMonth value '{0}'
291 invalid gMonthDay value '{0}'
292 invalid duration value '{0}'
293 duration value '{0}' must start with '-' or 'P'
294 duration value '{0}' must contain 'P'
295 duration value '{0}' can contain '-' only as the first character
296 duration value '{0}' contains invalid text before 'T'
297 duration value '{0}' has no time component after 'T'
298 duration value '{0}' must have at least one component
299 duration value '{0}' must have at least one digit after '.'
300 incomplete date value '{0}'
301 invalid date value '{0}'
302 incomplete time value '{0}'
303 invalid time value '{0}'
304 expected fractional seconds after '.' in time value '{0}'
305 incomplete gYearMonth value '{0}'
306 invalid gYearMonth value '{0}'
307 invalid gYear value '{0}'
308 year value '{0}' must follow 'CCYY' format
309 invalid leading zero in gYear value '{0}'
310 month component missing in gYearMonth value '{0}'
311 time zone expected in '{0}'
312 unexpected text after 'Z' in time zone value '{0}'
313 invalid time zone value '{0}'
314 illegal year value '{0}'
315 month value '{0}' must be between 1 and 12
316 day value '{0}' must be between 1 and {1}
317 hours value '{0}' must be between 0 and 23
318 minutes value '{0}' must be between 0 and 59
319 seconds value '{0}' must be between 0 and 60
320 minutes value '{0}' must be between 0 and 59
321 derived by restriction complex type has content while base type is empty
322 namespace of element '{0}' is not allowed by wildcard in the base
323 occurrence range of element '{0}' is not a valid restriction of base element's range
324 element name/namespace in restriction does not match that of corresponding element in the base
325 element '{0}' is nillable in the restriction while it is non-nillable in the base
326 element '{0}' is either not fixed or is fixed to a different value compared to corresponding element in the base
327 disallowed substitutions for element '{0}' are not a superset of those for corresponding element in the base
328 element '{0}' has type that does not derive from type of corresponding element in the base
329 element '{0}' has fewer identity constraints compared to corresponding element '{1}' in the base
330 element '{0}' has identity constraint that does not appear in corresponding element '{1}' in the base
331 occurrence range of group is not a valid restriction of occurrence range of base group
332 no complete functional mapping between particles
333 forbidden restriction of any particle
334 forbidden restriction of all compositor
335 forbidden restriction of choice compositor
336 forbidden restriction of sequence compositor
337 occurrence range of wildcard is not a valid restriction of base wildcard's range
338 wildcard is not a subset of corresponding wildcard in the base
339 occurrence range of group is not a restriction of base wildcard's range
340 no complete functional mapping between particles
341 no complete functional mapping between particles
342 invalid content spec node type
343 NodeIDMap exceeds largest available size
344 ProtoType has NULL class name
345 ProtoType name length '{0}' differs from expected '{1}'
346 ProtoType name '{0}' differs from expected '{1}'
347 InputStream read '{0}' is less than required '{1}'
348 InputStream read '{0}' is beyond available buffer size '{1}'
349 storing violation
350 store buffer violation '{0}', '{1}'
351 object tag '{0}' exceeds load pool upper boundary '{1}'
352 load pool size '{0}' does not tally with object count '{1}'
353 loading violation
354 load buffer violation '{0}', '{1}'
355 invalid class index '{0}', '{1}'
356 invalid checkFillBuffer size '{0}'
357 invalid checkFlushBuffer size '{0}'
358 invalid NULL pointer encountered '{0}'
359 createObject fails
360 object count '{0}' exceeds upper boundary '{1}'
361 grammar pool is empty
362 grammar pool is not empty
363 string pool is not empty
364 storer level '{0}' does not match loader level '{1}'
365 undefined prefix in QName value '{0}'
$set 4
2 dummy
3 index or size is negative, or greater than the allowed value
4 specified range of text does not fit into DOMString
5 attempt is made to insert a node where it is not permitted
6 node is used in a different document than the one that created it
7 invalid or illegal XML character
8 node does not support storing data
9 attempt is made to modify an object where modifications are not allowed
10 attempt is made to reference a node in a context where it does not exist
11 implementation does not support the requested type of object or operation
12 attempt is made to add an attribute that is already in use elsewhere
13 attempt is made to use an object that is not or is no longer usable
14 invalid or illegal string
15 attempt is made to modify the type of the underlying object
16 attempt is made to create or change an object in a way which is incorrect with respect to namespaces
17 parameter or requested operation is not supported by the underlying object
18 call to a method such as insertBefore or removeChild would make the node invalid with respect to document grammar
19 type of an object is incompatible with the expected type of the parameter associated with the object
20 dummy
21 boundary points of a range do not meet specific requirements
22 container of a range boundary point is set to a node of an invalid type or to a node with an ancestor of an invalid type
23 dummy
24 failed to load a document or an XML fragment using DOMLSParser
25 failed to serialize a DOM node using DOMLSSerializer
26 dummy
27 expression has incorrect syntax or contains XPath features not supported by the XML Schema XPath subset
28 requested result type not supported
29 no current result in the result object
30 nested CDATA sections
31 unrepresentable character
32 unrecognized node type
33 parsing in progress
34 parsing aborted by the user
35 parsing failed
@@ -0,0 +1,899 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifdef _USING_V110_SDK71_
#include "VerRsrc.h"
#include "winnt.rh"
#else
#include "winver.h"
#include "winnt.h"
#endif
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,1,2,0
PRODUCTVERSION 3,1,2,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "Dynamic linked library for Xerces-C++\0"
VALUE "CompanyName", "Apache Software Foundation\0"
VALUE "FileDescription", "Shared Library for Xerces-C++ Version 3.1.2\0"
VALUE "FileVersion", "3, 1, 2, 0\0"
VALUE "InternalName", "xerces-c_3_1.dll\0"
VALUE "LegalCopyright", "Copyright © 1999-2015 Apache Software Foundation; subject to licensing terms\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "xerces-c_3_1.dll\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "Xerces-C++ Version 3.1.2\0"
VALUE "ProductVersion", "3, 1, 2, 0\0"
VALUE "SpecialBuild", "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x04b0
END
END
#endif // !_MAC
#if !defined(__BORLANDC__) || defined(XML_USE_WIN32_MSGLOADER)
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifdef _USING_V110_SDK71_\r\n"
"#include ""VerRsrc.h""\r\n"
"#include ""winnt.rh""\r\n"
"#else\r\n"
"#include ""winver.h""\r\n"
"#include ""winnt.h""\r\n"
"#endif\r\n"
"\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
// ----------------------------------------------------------------
// This file was generated from the XML error message source.
// so do not edit this file directly!!
// ----------------------------------------------------------------
STRINGTABLE DISCARDABLE
BEGIN
2 L"notation '{0}' has already been declared"
3 L"attribute '{0}' has already been declared for element '{1}'"
4 L"encoding '{0}' from XML declaration or manually set contradicts the auto-sensed encoding; ignoring"
5 L"element '{0}' is referenced in a content model but was never declared"
6 L"element '{0}' is referenced in an ATTLIST but was never declared"
7 L"{0}"
8 L"unable to include document '{0}'"
9 L"unable to open text file target '{0}'"
10 L"unable to include resource '{0}'"
13 L"'{0}' is not allowed for the content of simpleType; only list, union, and restriction are allowed"
14 L"globally-defined complex type must have a name"
15 L"globally-declared attribute must have a name"
16 L"attribute declaration must have name or 'ref' attribute"
17 L"element declaration must have name or 'ref' attribute"
18 L"group declaration must have name or a 'ref' attribute"
19 L"attributeGroup declaration must have name or 'ref' attribute"
20 L"anonymous complexType in element '{0}' has name"
21 L"anonymous simpleType in element '{0}' has name"
22 L"content of element declaration must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)"
23 L"invalid content in simple type '{0}'; only list, union, and restriction are allowed"
24 L"expected simpleType in list definition for type '{0}'"
25 L"list, union, or restriction content is invalid for type '{0}'"
26 L"invalid content in list definition for type '{0}'"
27 L"expected simpleType in restriction definition for type '{0}'"
28 L"facet '{0}' is already defined"
29 L"expected simpleType in union definition for type '{0}'"
30 L"content in simpleType definition is empty"
31 L"expected restriction or extension in simpleContent definition"
32 L"base attribute must be specified for restriction or extension definition"
33 L"expected restriction or extension in complexContent definition"
34 L"invalid content in 'schema' element"
35 L"invalid content for type '{0}'"
36 L"unknown simpleType '{0}'"
37 L"unknown complexType '{0}'"
38 L"prefix '{0}' can not be resolved to namespace URI"
39 L"referenced element '{0}' not found"
40 L"type '{0}:{1}' not found"
41 L"attribute '{0}' not found"
42 L"invalid element '{0}' in complex type definition"
43 L"base type '{0}' not found"
44 L"unable to create validator for '{0}'"
45 L"invalid element following simpleContent definition in complexType"
46 L"invalid element following complexContent definition in complexType"
47 L"attribute '{0}' cannot have both fixed and default values"
48 L"attribute '{0}' with default value must be optional"
49 L"attribute '{0}' declared more than once in the same scope"
50 L"attribute '{0}' cannot have both 'type' attribute and simpleType definition"
51 L"simpleType '{0}:{1}' for attribute '{2}' not found"
52 L"element '{0}' cannot have both fixed and default values"
53 L"invalid {0} name '{1}'"
54 L"element '{0}' cannot have both 'type' attribute and simpleType/complexType definition"
55 L"element '{0}' has fixed or default value and must have mixed simple or simple content model"
56 L"simpleType '{0}' that '{1}' extends has a value of the final attribute that does not permit extension"
57 L"type '{0}' specified as the base in simpleContent definition must not have complex content"
58 L"type '{0}' is a simple type and cannot be used in derivation by restriction in complexType definition"
59 L"invalid element following restriction or extension definition in simpleContent"
60 L"invalid element following restriction or extension definition in complexContent"
61 L"duplicate annotation in type '{0}'"
62 L"type '{0}' cannot be used in its own union, list, or restriction definition"
63 L"block value '{0}' is invalid"
64 L"final value '{0}' is invalid"
65 L"element '{0}' cannot be part of the substitution group headed by '{1}'"
66 L"element '{0}' has a type which does not derive from the type of the element at the head of the substitution group"
67 L"element '{0}' declared more than once in the same scope"
68 L"value '{0}' invalid for attribute '{1}'"
69 L"attribute '{0}' has both 'ref' attribute and inline simpleType definition or 'form' or 'type' attribute"
70 L"duplicate reference attribute '{0}:{1}' in complexType definition"
71 L"derivation by restriction is forbidden by either base type '{0}' or globally"
72 L"derivation by extension is forbidden by either base type '{0}' or globally"
73 L"base type specified in complexContent definition must be a complex type"
74 L"imported schema '{0}' has different target namespace '{1}'; expected '{2}'"
75 L"'schemaLocation' attribute must be specified in element '{0}'"
76 L"included schema '{0}' has different target namespace '{1}'"
77 L"at most one annotation is allowed"
78 L"content of attribute '{0}' must match (annotation?, simpleType?)"
79 L"attribute '{0}' must appear in global {1} declarations"
80 L"attribute '{0}' must appear in local {1} declarations"
81 L"attribute '{0}' cannot appear in global {1} declarations"
82 L"attribute '{0}' cannot appear in local {1} declarations"
83 L"minOccurs value '{0}' must not be greater than maxOccurs value '{1}'"
84 L"duplicate annotation in anyAttribute declaration"
85 L"global {0} declaration must have name"
86 L"circular definition in '{0}'"
87 L"global type '{0}:{1}' declared more than once or also declared as {2}"
88 L"global {0} '{1}' declared more than once"
89 L"invalid value '{0}' for whiteSpace facet; expected 'collapse'"
90 L"namespace of import declaration must be different from target namespace of importing schema"
91 L"importing schema must have target namespace if namespace in import declaration is not present"
92 L"element '{0}' cannot have value constraint '{1}' if its type is derived from ID"
93 L"element/attribute '{0}' is of NOTATION type"
94 L"element '{0}' has mixed content type and the content type's particle must be emptiable"
95 L"complexType definition has empty content but base type is not empty or does not have emptiable particle"
96 L"content types of base type '{0}' and derived type '{1}' must both be mixed or element-only"
97 L"derived content type is not a valid restriction of base content type"
98 L"derivation by extension or restriction is forbidden by either base type '{0}' or globally"
99 L"item type definition must have variety of atomic or union where all member types must be atomic"
100 L"group '{0}' must contain all, choice, or sequence compositor"
101 L"content of attributeGroup '{0}' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?))"
102 L"top-level compositor in a group must not have 'minOccurs' or 'maxOccurs' attribute"
103 L"{0} '{1}:{2}' not found"
104 L"group with the all compositor must only appear as content type of a complex type"
105 L"group with the all compositor constituting the content type of a complex type must have both minOccurs and maxOccurs equal 1"
106 L"element declaration in the all compositor must have minOccurs and maxOccurs equal 0 or 1"
107 L"attribute '{0}' is already defined in base"
108 L"intensional intersection of attribute wildcards must be expressible"
109 L"base type does not have any attributes"
110 L"attribute '{0}' has incompatible use value in the base"
111 L"type of attribute '{0}' must be derived by restriction from type of the corresponding attribute in the base"
112 L"attribute '{0}' does not have a fixed value or has a different fixed value from that of the base"
113 L"attribute '{0}' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard"
114 L"attribute wildcard is present in the derived type but not in the base"
115 L"attribute wildcard in the derived type is not a valid subset of that in the base"
116 L"attribute '{0}' cannot have different use value in the derived type if the base attribute use value is 'prohibited'"
117 L"attribute wildcard in the derived type must be identical to or stricter than the one in the base"
118 L"unexpected '{0}' in the content of the all compositor; only elements are allowed"
119 L"redefined schema '{0}' has a different target namespace '{1}'"
120 L"simpleType in redefine must have a restriction definition"
121 L"simpleType base attribute in redefine must reference the original type with the same name"
122 L"complexType in redefine must have a restriction or extension definition"
123 L"complexType base attribute in redefine must reference the original type with the same name"
124 L"group '{0}' must have minOccurs and maxOccurs equal 1"
125 L"unable to find declaration in the schema being redefined corresponding to '{0}'"
126 L"group declaration in redefine may only contain one reference to itself"
127 L"attributeGroup declaration in redefine may only contain one reference to itself"
128 L"redefine declaration cannot contain '{0}'"
129 L"notation declaration '{0}:{1}' not found"
130 L"more than one identity constraint has name '{0}'"
131 L"identity constraint declaration must match (annotation?, selector, field+)"
132 L"key reference declaration '{0}' refers to unknown key '{1}'"
133 L"field cardinalities for keyref '{0}' and key '{1}' must match"
134 L"XPath expression is missing or empty"
135 L"fixed value in attribute reference is not set or differs from the fixed value of '{0}'"
136 L"attribute '{0}' is of ID type or type derived from ID and cannot have default/fixed value constraint"
137 L"attribute '{0}' is a subsequent attribute in this complex type with a type derived from ID"
138 L"attribute '{0}' is a subsequent attribute in this attribute group with a type derived from ID"
139 L"empty value illegal for 'targetNamespace' attribute; target namespace must be absent or contain non-empty value"
140 L"{0}"
141 L"'{0}' has already been included or redefined"
142 L"namespace '{0}' is referenced without import declaration"
143 L"all compositor that is part of a complex type definition must constitute the entire content of the definition"
144 L"annotation can only contain appinfo and documentation declarations"
145 L"invalid facet name '{0}'"
146 L"root element name of XML Schema document must be 'schema'"
147 L"circular substitution group in element '{0}'"
148 L"element '{0}' must be from the XML Schema namespace"
149 L"target namespace of attribute '{0}' cannot be http://www.w3.org/2001/XMLSchema-instance"
150 L"invalid namespace declaration"
151 L"namespace fix-up cannot be performed on DOM Level 1 node"
152 L"more than one anyAttribute declaration found in complex type declaration"
153 L"anyAttribute must not be followed by other declarations"
156 L"parser has encountered more than '{0}' entity expansions in the document; this is the limit imposed by the application"
157 L"expected comment or CDATA section"
158 L"attribute name expected"
159 L"notation name expected"
160 L"illegal repetition of elements in mixed content model"
161 L"default attribute declaration expected"
162 L"equal sign expected"
163 L"element name expected"
164 L"comment must start with <!--"
165 L"invalid document structure"
166 L"expected version, encoding, or standalone declaration"
167 L"invalid XML version declaration"
168 L"unsupported XML version '{0}'"
169 L"unterminated XML declaration"
170 L"invalid XML encoding declaration '{0}'"
171 L"invalid standalone declaration"
172 L"unterminated comment"
173 L"processing instruction name expected"
174 L"unterminated processing instruction"
175 L"invalid character 0x{0}"
176 L"unterminated start tag '{0}'"
177 L"attribute value expected"
178 L"unterminated end tag '{0}'"
179 L"expected type for attribute '{0}' of element '{1}'"
180 L"expected end of tag '{0}'"
181 L"expected tag name, comment, PI, or other markup"
182 L"invalid content after root element's end tag"
183 L"comment expected"
184 L"comment or processing instruction expected"
185 L"whitespace expected"
186 L"expected root element in DOCTYPE declaration"
187 L"quoted string expected"
188 L"public id expected"
189 L"invalid character 0x{0} in public id"
190 L"unterminated DOCTYPE declaration"
191 L"invalid character 0x{0} in internal subset"
192 L"unexpected whitespace"
193 L"invalid character 0x{1} in attribute value '{0}'"
194 L"markup declaration expected"
195 L"TEXT declaration is illegal at this point"
196 L"conditional section in internal subset"
197 L"parameter entity name expected"
198 L"unterminated entity declaration '{0}'"
199 L"invalid character reference"
200 L"unterminated character reference"
201 L"expected entity name for reference"
202 L"entity '{0}' not found"
203 L"unparsed entity reference '{0}' is invalid at this point"
204 L"unterminated entity reference '{0}'"
205 L"recursive entity expansion '{0}'"
206 L"partial markup in entity value"
207 L"unterminated element declaration '{0}'"
208 L"expected content specification for element '{0}'"
209 L"'*' expected"
210 L"mixed content model '{0}' not terminated properly"
211 L"system or public id expected"
212 L"unterminated notation declaration"
213 L"expected ',', '|', or ')'"
214 L"expected '|' or ')'"
215 L"expected ',', '|', or ')' in content model of element '{0}'"
216 L"expected enumeration value for attribute '{0}'"
217 L"expected '|' or ')'"
218 L"unterminated entity literal"
219 L"unmatched end tag detected"
220 L"'(' expected"
221 L"attribute '{0}' is already specified for element '{1}'"
222 L"'<' character cannot be used in attribute value '{0}'; use &lt; instead"
223 L"leading surrogate character is not followed by a legal second character"
224 L"expected ']]>' sequence to end conditional section"
225 L"expected INCLUDE or IGNORE at this point"
226 L"expected '[' to follow INCLUDE or IGNORE"
227 L"unexpected end of entity '{0}'"
228 L"parameter entity propagated out of internal/external subset"
229 L"unmatched ']' character detected"
230 L"parameter entity references are not allowed inside markup in internal subset"
231 L"entity propagated out of the content section into miscellaneous"
232 L"expected &# to be followed by a numeric character value"
233 L"'[' expected"
234 L"']]>' sequence is not allowed in character data"
235 L"'--' sequence is illegal in comment"
236 L"unterminated CDATA section"
237 L"NDATA expected"
238 L"NDATA is illegal for parameter entities"
239 L"hex radix character references must use 'x', not 'X'"
240 L"{0} declaration already seen"
241 L"XML declarations must be in this order: version, encoding, standalone"
242 L"external entity cannot be referred to from attribute value"
243 L"XML or TEXT declaration must start with '<?xml ', not '<?XML '"
244 L"expected literal entity value or public/system id"
245 L"'{0}' is not a valid digit for the specified radix"
246 L"input ended before all started tags were ended; last tag started is '{0}'"
247 L"nested CDATA section illegal"
248 L"prefix '{0}' can not be resolved to namespace URI"
249 L"start and the end tags are in different entities"
250 L"XML document cannot be empty"
251 L"CDATA section is illegal outside the root element"
252 L"unexpected trailing surrogate character"
253 L"processing instruction cannot start with 'xml'"
254 L"XML or TEXT declaration must start at line 1, column 1"
255 L"version declaration is required in XML declaration"
256 L"standalone declaration is only legal in the main XML entity"
257 L"encoding declaration is required in TEXT declaration"
258 L"colon is illegal in names when namespaces are enabled"
259 L"{0}"
260 L"schemaLocation does not contain namespace-location pairs"
261 L"fatal error during schema scan"
262 L"reference to external entity declaration '{0}' is illegal in standalone document"
263 L"partial markup in parameter entity replacement text in complete declaration"
264 L"invalid namespace value in prefix-namespace mapping '{0}'"
265 L"prefix 'xmlns' cannot be explicitly bound to namespace"
266 L"namespace for 'xmlns' cannot be explicitly bound to prefix"
267 L"prefix 'xml' cannot be bound to namespace other than its canonical namespace"
268 L"namespace for 'xml' cannot be bound to prefix other than 'xml'"
269 L"element '{0}' cannot have 'xmlns' as its prefix"
270 L"restriction must contain simpleType definition"
271 L"invalid root element '{0}' in DOCTYPE declaration"
272 L"invalid element name '{0}'"
273 L"invalid attribute name '{0}'"
274 L"invalid entity reference name '{0}'"
275 L"DOCTYPE declaration already seen"
276 L"fallback element is not a direct child of include element"
277 L"include element without 'href' attribute"
278 L"include element with XPointer specification; XPointer is not yet supported"
279 L"invalid 'parse' attribute value '{0}'; expected 'text' or 'xml'"
280 L"multiple fallback elements in document '{0}'"
281 L"include failed and no fallback element found in document '{0}'"
282 L"circular inclusion in document '{0}'"
283 L"self-inclusion in document '{0}'"
284 L"element '{0}' is not allowed as a child of include element"
285 L"included notation '{0}' conflicts with notation already defined"
286 L"included entity '{0}' conflicts with entity already defined"
END
STRINGTABLE DISCARDABLE
BEGIN
16386 L"no declaration found for element '{0}'"
16387 L"no declaration found for attribute '{0}'"
16388 L"notation '{0}' is referenced but was never declared"
16389 L"root element differs from that declared in DOCTYPE"
16390 L"missing required attribute '{0}'"
16391 L"element '{0}' is not allowed for content model '{1}'"
16392 L"ID attribute must be #IMPLIED or #REQUIRED"
16393 L"attribute cannot have empty value"
16394 L"element '{0}' has already been declared"
16395 L"element '{0}' has more than one ID attribute"
16396 L"ID value '{0}' has already been used"
16397 L"ID attribute '{0}' is referenced but was never declared"
16398 L"attribute '{0}' refers to undeclared notation '{1}'"
16399 L"element '{0}' is specified in DOCTYPE but was never declared"
16400 L"empty content is not valid for content model '{0}'"
16401 L"attribute '{0}' is not declared for element '{1}'"
16402 L"value '{0}' for attribute '{1}' of type ENTITY/ENTITIES must refer to external, unparsed entity"
16403 L"attribute '{0}' refers to unknown entity '{1}'"
16404 L"attribute of type ID/IDREF/IDREFS/ENTITY/ENTITIES/NOTATION cannot contain colon when namespaces are enabled"
16405 L"missing elements in content model '{0}'"
16406 L"no character data is allowed by content model"
16407 L"value '{0}' for attribute '{1}' does not match its type's defined enumeration or notation list"
16408 L"value '{0}' for attribute '{1}' is invalid Name or NMTOKEN value"
16409 L"attribute '{0}' does not allow multiple values"
16410 L"attribute '{0}' has value '{1}' that does not match its #FIXED value '{2}'"
16411 L"element types cannot be duplicated in mixed content model"
16412 L"{0} is not supported"
16413 L"'{0}' is not allowed in the {1} compositor; only element, group, choice, sequence, and any are allowed"
16414 L"base type '{0}' not found in '{1}' definition"
16415 L"{0} declaration with 'ref' attribute cannot have content"
16416 L"{0}"
16417 L"prohibited attribute '{0}' is present"
16418 L"illegal 'xml:space' declaration"
16419 L"schema document '{0}' has different target namespace from the one specified in instance document '{1}'"
16420 L"element '{0}' is of simple type and cannot have elements in its content"
16421 L"unable to find validator for simple type of element '{0}'"
16422 L"grammar not found for namespace '{0}'"
16423 L"{0}"
16424 L"'xsi:nil' specified for non-nillable element '{0}'"
16425 L"element '{0}' is nil and must be empty"
16426 L"content of element '{0}' differs from its declared fixed value"
16427 L"unable to find validator for simple type of attribute '{0}'"
16428 L"error during schema scan"
16429 L"element '{0}' must be qualified"
16430 L"element '{0}' must be unqualified"
16431 L"reference to external entity declaration '{0}' is not allowed in standalone document"
16432 L"attribute '{0}' in element '{1}' has default value and must be specified in standalone document"
16433 L"attribute '{0}' must not be changed by normalization in standalone document"
16434 L"whitespace must not occur between externally declared elements with element content in standalone document"
16435 L"entity '{0}' not found"
16436 L"partial markup in parameter entity replacement text"
16437 L"failed to validate '{0}'"
16438 L"complex type '{0}' violates the unique particle attribution rule in its components '{1}' and '{2}'"
16439 L"abstract type '{0}' cannot be used in 'xsi:type'"
16440 L"element '{0}' is abstract; use non-abstract member of its substitution group instead"
16441 L"type of element '{0}' is abstract; use 'xsi:type' to specify non-abstract type instead"
16442 L"type '{0}' specified in 'xsi:type' cannot be resolved"
16443 L"type '{0}' specified in 'xsi:type' does not derive from type of element '{1}'"
16444 L"element '{0}' does not permit substitution"
16445 L"complex type '{0}' does not permit substitution"
16446 L"attribute '{0}' must be qualified"
16447 L"attribute '{0}' must be unqualified"
16448 L"identity constraint field matches more than one value within the scope of its selector; field must match unique value"
16449 L"unknown identity constraint field"
16450 L"element '{0}' has identity constraint key with no value"
16451 L"element '{0}' does not have enough values for identity constraint key '{1}'"
16452 L"element '{0}' declares identity constraint key that matches nillable element"
16453 L"element '{0}' declares duplicate identity constraint unique values"
16454 L"element '{0}' declares duplicate identity constraint key values"
16455 L"keyref '{0}' refers to out of scope key/unique"
16456 L"identity constraint key for element '{0}' not found"
16457 L"non-whitespace characters are not allowed in schema declarations other than appinfo and documentation"
16458 L"element '{0}' declared EMPTY but has attribute '{1}' of type NOTATION"
16459 L"element '{0}' declared EMPTY and cannot have content, not even entity references, comments, PIs, or whitespaces"
16460 L"element '{0}' has more than one attribute of type NOTATION"
16461 L"attribute '{0}' has non-distinct token '{1}'"
16462 L"content model of element '{0}' does not allow escaped whitespaces"
END
STRINGTABLE DISCARDABLE
BEGIN
8194 L"unable to open primary document entity '{0}'"
8197 L"index is beyond array bounds"
8198 L"new array size is less than the old"
8199 L"index is beyond maximum attribute index"
8200 L"invalid AttType value"
8201 L"invalid DefAttType value"
8202 L"bit index is beyond set size"
8203 L"bit sets have different sizes"
8204 L"no more buffers available"
8205 L"buffer is not found in the manager's pool"
8206 L"NULL pointer"
8207 L"binary operation node has unary node type"
8208 L"content type must be mixed or children"
8209 L"PCDATA node is illegal at this point"
8210 L"unary operation node has binary node type"
8211 L"unknown content model type"
8212 L"unknown content spec type"
8213 L"parent element has no content spec node"
8214 L"invalid spec type for '{0}'"
8215 L"unknown creation reason value"
8216 L"element stack is empty"
8217 L"pop operation requested on empty stack"
8218 L"parent operation requested with only one element in stack"
8219 L"no more elements in enumerator"
8220 L"unable to open file '{0}'"
8221 L"unable to query file position"
8222 L"unable to close file"
8223 L"unable to seek to the end of file"
8224 L"unable to seek to the required position in file"
8225 L"unable to duplicate handle"
8226 L"unable to read data from file"
8227 L"unable to write data to file"
8228 L"unable to reset file position to the beginning"
8229 L"unable to get file size"
8230 L"unable to determine file base pathname"
8231 L"parsing in progress"
8232 L"DOCTYPE declaration was seen but installed validator does not support DTD"
8233 L"unable to open DTD document '{0}'"
8234 L"unable to open external entity '{0}'"
8235 L"unexpected end of input"
8236 L"zero hash modulus"
8237 L"hashing key produced invalid hash"
8238 L"no such key in hash table"
8239 L"unable to destroy mutex"
8240 L"internal error in NetAccessor"
8241 L"NetAccessor is unable to determine length of remote file"
8242 L"unable to initialize NetAccessor"
8243 L"unable to resolve host/address '{0}'"
8244 L"unable to create socket for URL '{0}'"
8245 L"unable to connect socket for URL '{0}'"
8246 L"unable to write to socket for URL '{0}'"
8247 L"unable to read from socket for URL '{0}'"
8248 L"specified HTTP method is not supported by NetAccessor"
8249 L"element '{0}' is already in pool"
8250 L"invalid pool element id"
8251 L"zero hash modulus"
8252 L"reader id not found"
8253 L"invalid auto encoding value"
8254 L"unable to decode first line in entity '{0}'"
8255 L"XML or TEXT declaration '{0}' cannot have NEL or lsep"
8256 L"current transcoding service does not support source offset information"
8257 L"EBCDIC file must provide encoding declaration"
8258 L"unable to open primary document entity '{0}'"
8259 L"unbalanced start/end tags"
8260 L"call to scanNext is illegal at this point"
8261 L"index is past top of stack"
8262 L"empty stack"
8263 L"target buffer cannot have zero max size"
8264 L"unsupported radix; expected 2, 8, 10, or 16"
8265 L"target buffer is too small"
8266 L"start index is past the end of string"
8267 L"string representation overflows output binary result"
8268 L"illegal string pool id"
8269 L"char 0x{0} is not representable in '{1}' encoding"
8270 L"invalid multi-byte sequence"
8271 L"code point 0x{0} is invalid for '{1}' encoding"
8272 L"leading surrogate followed by invalid trailing surrogate"
8273 L"unable to create converter for '{0}' encoding"
8274 L"malformed URL"
8275 L"unsupported protocol in URL"
8276 L"URL protocol '{0}' is unsupported"
8277 L"missing protocol prefix"
8278 L"expected '//' after protocol"
8279 L"base part of URL cannot be relative"
8280 L"port field must be 16-bit decimal number"
8281 L"invalid byte '{1}' at position {0} of a {2}-byte sequence"
8282 L"invalid bytes '{0}' and '{1}' of a 3-byte sequence"
8283 L"irregular bytes '{0}' and '{1}' of a 3-byte sequence"
8284 L"invalid bytes '{0}' and '{1}' of a 4-byte sequence"
8285 L"exceeded byte limit at byte '{0}' in a {1}-byte sequence"
8286 L"index is beyond vector bounds"
8287 L"invalid element id"
8288 L"internal subset is not allowed when reusing the grammar"
8289 L"unknown recognizer encoding"
8290 L"illegal character at offset {0} in regular expression '{1}'"
8291 L"invalid reference number"
8292 L"character expected after backslash"
8293 L"unexpected '?'; '(?:', '(?=', '(?!', '(?<', '(?#', or '(?>' expected"
8294 L"'(?<=' or '(?<!' expected"
8295 L"unterminated comment"
8296 L"')' expected"
8297 L"unexpected end of pattern in modifier group"
8298 L"':' expected"
8299 L"unexpected end of pattern in conditional group"
8300 L"back reference, anchor, lookahead, or lookbehind expected in conditional pattern"
8301 L"more than three choices in conditional group"
8302 L"\x0063\x0068\x0061\x0072\x0061\x0063\x0074\x0065\x0072\x0020\x0069\x006E\x0020\x0074\x0068\x0065\x0020\x0055\x002B\x0030\x0030\x0034\x0030\x002D\x0055\x002B\x0030\x0030\x0035\x0066\x0020\x0072\x0061\x006E\x0067\x0065\x0020\x006D\x0075\x0073\x0074\x0020\x0066\x006F\x006C\x006C\x006F\x0077\x0020\x0027\x005C\x0063\x0027"
8303 L"'{' expected before category character"
8304 L"property name must be closed with '}'"
8305 L"unexpected meta character"
8306 L"unknown property"
8307 L"POSIX character class must be closed with ':]'"
8308 L"unexpected end of pattern in character class"
8309 L"unknown name for POSIX character class"
8310 L"']' expected"
8311 L"\x0027\x007B\x0030\x007D\x0027\x0020\x0069\x0073\x0020\x0069\x006E\x0076\x0061\x006C\x0069\x0064\x0020\x0063\x0068\x0061\x0072\x0061\x0063\x0074\x0065\x0072\x0020\x0072\x0061\x006E\x0067\x0065\x003B\x0020\x0075\x0073\x0065\x0020\x0027\x005C\x007B\x0031\x007D\x0027\x0020\x0069\x006E\x0073\x0074\x0065\x0061\x0064"
8312 L"'[' expected"
8313 L"')', '-[', '+[', or '&[' expected"
8314 L"range end code point '{0}' is less than start code point '{1}'"
8315 L"invalid Unicode hex notation"
8316 L"\x0027\x005C\x0020\x0078\x007B\x0027\x0020\x006D\x0075\x0073\x0074\x0020\x0062\x0065\x0020\x0063\x006C\x006F\x0073\x0065\x0064\x0020\x0077\x0069\x0074\x0068\x0020\x0027\x007D\x0027"
8317 L"invalid Unicode code point"
8318 L"anchor cannot be present at this point"
8319 L"'{0}' is invalid character escape sequence"
8320 L"invalid quantifier in '{0}'; digit expected"
8321 L"invalid quantifier in '{0}'; invalid quantity or missing '}'"
8322 L"invalid quantifier in '{0}'; digit or '}' expected"
8323 L"invalid quantifier in '{0}'; min quantity must be less than or equal max quantity"
8324 L"invalid quantifier in '{0}'; quantity value overflow"
8325 L"XML Schema was seen but installed validator does not support XML Schema"
8326 L"SubstitutionGroupComparator has no grammar resolver"
8327 L"invalid length value '{0}'"
8328 L"invalid maxLength value '{0}'"
8329 L"invalid minLength value '{0}'"
8330 L"length value '{0}' must be a non-negative integer"
8331 L"maxLength value '{0}' must be a non-negative integer"
8332 L"minLength value '{0}' must be a non-negative integer"
8333 L"both length and maxLength cannot be present at the same time"
8334 L"both length and minLength cannot be present at the same time"
8335 L"maxLength value '{0}' must be greater than minLength value '{1}'"
8336 L"invalid facet tag '{0}'"
8337 L"length value '{0}' must be equal to length value '{1}' in the base"
8338 L"minLength value '{0}' must be greater than or equal to minLength value '{1}' in the base"
8339 L"minLength value '{0}' must be less than or equal to maxLength value '{1}' in the base"
8340 L"maxLength value '{0}' must be less than or equal to maxLength value '{1}' in the base"
8341 L"maxLength value '{0}' must be greater than or equal to minLength value '{1}' in the base"
8342 L"length value '{0}' must be greater than or equal to minLength value '{1}' in the base"
8343 L"length value '{0}' must be less than or equal to maxLength value '{1}' in the base"
8344 L"minLength value '{0}' must be less than or equal to length value '{1}' in the base"
8345 L"maxLength value '{0}' must be greater than or equal to length value '{1}' in the base"
8346 L"enumeration value '{0}' must be from the value space of the base"
8347 L"whiteSpace value '{0}' must be one of 'preserve', 'replace', or 'collapse'"
8348 L"whiteSpace value is 'preserve' or 'replace' while base type whiteSpace value is 'collapse'"
8349 L"whiteSpace value is 'preserve' while base type whiteSpace value is 'replace'"
8350 L"invalid maxInclusive value '{0}'"
8351 L"invalid maxExclusive value '{0}'"
8352 L"invalid minInclusive value '{0}'"
8353 L"invalid minExclusive value '{0}'"
8354 L"invalid totalDigits value '{0}'"
8355 L"invalid fractionDigits value '{0}'"
8356 L"totalDigits value '{0}' must be a positive integer"
8357 L"fractionDigits value '{0}' must be a non-negative integer"
8358 L"both maxInclusive and maxExclusive cannot be present at the same time"
8359 L"both minInclusive and minExclusive cannot be present at the same time"
8360 L"maxExclusive value '{0}' must be greater than minExclusive value '{1}'"
8361 L"maxExclusive value '{0}' must be greater than minInclusive value '{1}'"
8362 L"maxInclusive value '{0}' must be greater than minExclusive value '{1}'"
8363 L"maxInclusive value '{0}' must be greater than minInclusive value '{1}'"
8364 L"totalDigits value '{0}' must be greater than fractionDigits value '{1}'"
8365 L"maxInclusive value '{0}' must be less than maxExclusive value '{1}' in the base"
8366 L"maxInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base"
8367 L"maxInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base"
8368 L"maxInclusive value '{0}' must be greater than minExclusive value '{1}' in the base"
8369 L"maxExclusive value '{0}' must be less than or equal to maxExclusive value '{1}' in the base"
8370 L"maxExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base"
8371 L"maxExclusive value '{0}' must be greater than minInclusive value '{1}' in the base"
8372 L"maxExclusive value '{0}' must be greater than minExclusive value '{1}' in the base"
8373 L"minExclusive value '{0}' must be less than maxExclusive value '{1}' in the base"
8374 L"minExclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base"
8375 L"minExclusive value '{0}' must be greater than minInclusive value '{1}' in the base"
8376 L"minExclusive value '{0}' must be greater than minExclusive value '{1}' in the base"
8377 L"minInclusive value '{0}' must be less than maxExclusive value '{1}' in the base"
8378 L"minInclusive value '{0}' must be less than or equal to maxInclusive value '{1}' in the base"
8379 L"minInclusive value '{0}' must be greater than or equal to minInclusive value '{1}' in the base"
8380 L"minInclusive value '{0}' must be greater than minExclusive value '{1}' in the base"
8381 L"maxInclusive value '{0}' must be from the base type value space"
8382 L"maxExclusive value '{0}' must be from the base type value space"
8383 L"minInclusive value '{0}' must be from the base type value space"
8384 L"minExclusive value '{0}' must be from the base type value space"
8385 L"totalDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base"
8386 L"fractionDigits value '{0}' must be less than or equal to totalDigits value '{1}' in the base"
8387 L"fractionDigits value '{0}' must be less than or equal to fractionDigits value '{1}' in the base"
8388 L"maxInclusive value '{0}' must be equal to fixed maxInclusive value '{1}' in the base"
8389 L"maxExclusive value '{0}' must be equal to fixed maxExclusive value '{1}' in the base"
8390 L"minInclusive value '{0}' must be equal to fixed minInclusive value '{1}' in the base"
8391 L"minExclusive value '{0}' must be equal to fixed minExclusive value '{1}' in the base"
8392 L"totalDigits value '{0}' must be equal to fixed totalDigits value '{1}' in the base"
8393 L"fractionDigits value '{0}' must be equal to fixed fractionDigits value '{1}' in the base"
8394 L"maxLength value '{0}' must be equal to fixed maxLength value '{1}' in the base"
8395 L"minLength value '{0}' must be equal to fixed minLength value '{1}' in the base"
8396 L"whiteSpace value '{0}' must be equal to fixed whiteSpace value '{1}' in the base"
8397 L"internal error while processing fixed facet"
8398 L"list itemType is empty"
8399 L"union memberTypes is empty"
8400 L"restriction union base is empty"
8401 L"restriction union base is '{0}' instead of union"
8402 L"value '{0}' does not match regular expression facet '{1}'"
8403 L"value '{0}' is invalid Base64-encoded binary"
8404 L"value '{0}' is invalid Hex-encoded binary"
8405 L"value '{0}' has length '{1}' which exceeds maxLength facet value '{2}'"
8406 L"value '{0}' has length '{1}' which is less than minLength facet value '{2}'"
8407 L"value '{0}' has length '{1}' which is not equal to length facet value '{2}'"
8408 L"value '{0}' not in enumeration"
8409 L"value '{0}' has '{1}' total digits which exceeds totalDigits facet value '{2}'"
8410 L"value '{0}' has '{1}' fraction digits which exceeds fractionDigits facet value '{2}'"
8411 L"value '{0}' must be less than or equal to maxInclusive facet value '{1}'"
8412 L"value '{0}' must be less than maxExclusive facet value '{1}'"
8413 L"value '{0}' must be greater than or equal to minInclusive facet value '{1}'"
8414 L"value '{0}' must be greater than or equal to minExclusive facet value '{1}'"
8415 L"value '{0}' is not whitespace replaced"
8416 L"value '{0}' is not whitespace collapsed"
8417 L"value '{0}' is invalid NCName"
8418 L"value '{0}' is invalid {1}"
8419 L"ID value '{0}' is not unique"
8420 L"value '{0}' is invalid ENTITY"
8421 L"value '{0}' is invalid QName"
8422 L"NOTATION '{0}' must be valid QName"
8423 L"value '{0}' does not match any member types of the union"
8424 L"value '{0}' is invalid anyURI"
8425 L"empty string encountered"
8426 L"string contains only whitespaces"
8427 L"more than one decimal point encountered"
8428 L"invalid character encountered"
8429 L"NULL pointer encountered"
8430 L"unable to construct URI with NULL/empty {0}"
8431 L"{0} '{1}' can only be set for a generic URI"
8432 L"{0} contains invalid escape sequence '{1}'"
8433 L"{0} contains invalid character '{1}'"
8434 L"{0} cannot be NULL"
8435 L"'{1}' is not conformant to {0}"
8436 L"no scheme found in URI"
8437 L"{0} '{1}' may not be specified if host is not specified"
8438 L"{0} '{1}' may not be specified if path is not specified"
8439 L"port number '{0}' must be in the (0,65535) range"
8440 L"internal error while validating '{0}'"
8441 L"result not set"
8442 L"internal error in CompactRanges"
8443 L"mismatched type in MergeRanges"
8444 L"internal error in SubtractRanges"
8445 L"internal error in IntersectRanges"
8446 L"argument must be RangeToken"
8447 L"invalid category name '{0}'"
8448 L"keyword '{0}' not found"
8449 L"reference number must be greater than zero"
8450 L"option '{0}' unknown"
8451 L"unknown token type"
8452 L"unable to get RangeToken for '{0}'"
8453 L"not supported"
8454 L"invalid child index"
8455 L"replace pattern cannot match zero-length string"
8456 L"invalid replace pattern"
8457 L"enabling NEL option can only be done once per process"
8458 L"out of memory"
8459 L"operation is not allowed"
8460 L"selector cannot select attribute"
8461 L"'|' at the beginning of XPath expression is illegal"
8462 L"'||' in XPath expression is illegal"
8463 L"missing attribute name in XPath expression"
8464 L"unexpected XPath token; expected qname, any, or namespace test"
8465 L"prefix '{0}' used in XPath expression can not be resolved to namespace URI"
8466 L"'::' in XPath expression is illegal"
8467 L"expected step following 'child' token in XPath expression"
8468 L"expected step following '//' in XPath expression"
8469 L"expected step following '/' in XPath expression"
8470 L"'/' not allowed after '//' in XPath expression"
8471 L"'//' only allowed after '.' at the beginning of XPath expression"
8472 L"'/' at the beginning of XPath expression is illegal"
8473 L"root element selection is illegal in XPath expression"
8474 L"empty XPath expression"
8475 L"XPath expression cannot end with '|'"
8476 L"invalid character '{0}' in XPath expression"
8477 L"unsupported XPath token"
8478 L"fractional values not supported in XPath expression"
8479 L"invalid dateTime value '{0}'"
8480 L"missing 'T' separator in dateTime value '{0}'"
8481 L"invalid gDay value '{0}'"
8482 L"invalid gMonth value '{0}'"
8483 L"invalid gMonthDay value '{0}'"
8484 L"invalid duration value '{0}'"
8485 L"duration value '{0}' must start with '-' or 'P'"
8486 L"duration value '{0}' must contain 'P'"
8487 L"duration value '{0}' can contain '-' only as the first character"
8488 L"duration value '{0}' contains invalid text before 'T'"
8489 L"duration value '{0}' has no time component after 'T'"
8490 L"duration value '{0}' must have at least one component"
8491 L"duration value '{0}' must have at least one digit after '.'"
8492 L"incomplete date value '{0}'"
8493 L"invalid date value '{0}'"
8494 L"incomplete time value '{0}'"
8495 L"invalid time value '{0}'"
8496 L"expected fractional seconds after '.' in time value '{0}'"
8497 L"incomplete gYearMonth value '{0}'"
8498 L"invalid gYearMonth value '{0}'"
8499 L"invalid gYear value '{0}'"
8500 L"year value '{0}' must follow 'CCYY' format"
8501 L"invalid leading zero in gYear value '{0}'"
8502 L"month component missing in gYearMonth value '{0}'"
8503 L"time zone expected in '{0}'"
8504 L"unexpected text after 'Z' in time zone value '{0}'"
8505 L"invalid time zone value '{0}'"
8506 L"illegal year value '{0}'"
8507 L"month value '{0}' must be between 1 and 12"
8508 L"day value '{0}' must be between 1 and {1}"
8509 L"hours value '{0}' must be between 0 and 23"
8510 L"minutes value '{0}' must be between 0 and 59"
8511 L"seconds value '{0}' must be between 0 and 60"
8512 L"minutes value '{0}' must be between 0 and 59"
8513 L"derived by restriction complex type has content while base type is empty"
8514 L"namespace of element '{0}' is not allowed by wildcard in the base"
8515 L"occurrence range of element '{0}' is not a valid restriction of base element's range"
8516 L"element name/namespace in restriction does not match that of corresponding element in the base"
8517 L"element '{0}' is nillable in the restriction while it is non-nillable in the base"
8518 L"element '{0}' is either not fixed or is fixed to a different value compared to corresponding element in the base"
8519 L"disallowed substitutions for element '{0}' are not a superset of those for corresponding element in the base"
8520 L"element '{0}' has type that does not derive from type of corresponding element in the base"
8521 L"element '{0}' has fewer identity constraints compared to corresponding element '{1}' in the base"
8522 L"element '{0}' has identity constraint that does not appear in corresponding element '{1}' in the base"
8523 L"occurrence range of group is not a valid restriction of occurrence range of base group"
8524 L"no complete functional mapping between particles"
8525 L"forbidden restriction of any particle"
8526 L"forbidden restriction of all compositor"
8527 L"forbidden restriction of choice compositor"
8528 L"forbidden restriction of sequence compositor"
8529 L"occurrence range of wildcard is not a valid restriction of base wildcard's range"
8530 L"wildcard is not a subset of corresponding wildcard in the base"
8531 L"occurrence range of group is not a restriction of base wildcard's range"
8532 L"no complete functional mapping between particles"
8533 L"no complete functional mapping between particles"
8534 L"invalid content spec node type"
8535 L"NodeIDMap exceeds largest available size"
8536 L"ProtoType has NULL class name"
8537 L"ProtoType name length '{0}' differs from expected '{1}'"
8538 L"ProtoType name '{0}' differs from expected '{1}'"
8539 L"InputStream read '{0}' is less than required '{1}'"
8540 L"InputStream read '{0}' is beyond available buffer size '{1}'"
8541 L"storing violation"
8542 L"store buffer violation '{0}', '{1}'"
8543 L"object tag '{0}' exceeds load pool upper boundary '{1}'"
8544 L"load pool size '{0}' does not tally with object count '{1}'"
8545 L"loading violation"
8546 L"load buffer violation '{0}', '{1}'"
8547 L"invalid class index '{0}', '{1}'"
8548 L"invalid checkFillBuffer size '{0}'"
8549 L"invalid checkFlushBuffer size '{0}'"
8550 L"invalid NULL pointer encountered '{0}'"
8551 L"createObject fails"
8552 L"object count '{0}' exceeds upper boundary '{1}'"
8553 L"grammar pool is empty"
8554 L"grammar pool is not empty"
8555 L"string pool is not empty"
8556 L"storer level '{0}' does not match loader level '{1}'"
8557 L"undefined prefix in QName value '{0}'"
END
STRINGTABLE DISCARDABLE
BEGIN
24578 L"dummy"
24579 L"index or size is negative, or greater than the allowed value"
24580 L"specified range of text does not fit into DOMString"
24581 L"attempt is made to insert a node where it is not permitted"
24582 L"node is used in a different document than the one that created it"
24583 L"invalid or illegal XML character"
24584 L"node does not support storing data"
24585 L"attempt is made to modify an object where modifications are not allowed"
24586 L"attempt is made to reference a node in a context where it does not exist"
24587 L"implementation does not support the requested type of object or operation"
24588 L"attempt is made to add an attribute that is already in use elsewhere"
24589 L"attempt is made to use an object that is not or is no longer usable"
24590 L"invalid or illegal string"
24591 L"attempt is made to modify the type of the underlying object"
24592 L"attempt is made to create or change an object in a way which is incorrect with respect to namespaces"
24593 L"parameter or requested operation is not supported by the underlying object"
24594 L"call to a method such as insertBefore or removeChild would make the node invalid with respect to document grammar"
24595 L"type of an object is incompatible with the expected type of the parameter associated with the object"
24596 L"dummy"
24597 L"boundary points of a range do not meet specific requirements"
24598 L"container of a range boundary point is set to a node of an invalid type or to a node with an ancestor of an invalid type"
24599 L"dummy"
24600 L"failed to load a document or an XML fragment using DOMLSParser"
24601 L"failed to serialize a DOM node using DOMLSSerializer"
24602 L"dummy"
24603 L"expression has incorrect syntax or contains XPath features not supported by the XML Schema XPath subset"
24604 L"requested result type not supported"
24605 L"no current result in the result object"
24606 L"nested CDATA sections"
24607 L"unrepresentable character"
24608 L"unrecognized node type"
24609 L"parsing in progress"
24610 L"parsing aborted by the user"
24611 L"parsing failed"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
#endif // XML_USE_WIN32_MSGLOADER
@@ -0,0 +1,244 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Win32MsgLoader.cpp 570552 2007-08-28 19:57:36Z amassari $
*/
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include <windows.h>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUni.hpp>
#include "Win32MsgLoader.hpp"
// Function prototypes
BOOL APIENTRY DllMain(HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved);
// ---------------------------------------------------------------------------
// Public Constructors and Destructor
// ---------------------------------------------------------------------------
HINSTANCE globalModuleHandle;
BOOL APIENTRY DllMain(HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID /*lpReserved*/)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
globalModuleHandle = hModule;
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
XERCES_CPP_NAMESPACE_BEGIN
// ---------------------------------------------------------------------------
// Global module handle
// ---------------------------------------------------------------------------
Win32MsgLoader::Win32MsgLoader(const XMLCh* const msgDomain) :
fDomainOfs(0)
, fModHandle(0)
, fMsgDomain(0)
{
// Try to get the module handle
fModHandle = globalModuleHandle;
if (!fModHandle)
{
//
// If we didn't find it, its probably because its a development
// build which is built as separate DLLs, so lets look for the DLL
// that we are part of.
//
static const char* const privDLLName = "IXUTIL";
fModHandle = ::GetModuleHandleA(privDLLName);
// If neither exists, then we give up
if (!fModHandle)
{
// Probably have to call panic here
}
}
// Store the domain name
fMsgDomain = XMLString::replicate(msgDomain, XMLPlatformUtils::fgMemoryManager);
// And precalc the id offset we use for this domain
if (XMLString::equals(fMsgDomain, XMLUni::fgXMLErrDomain))
fDomainOfs = 0;
else if (XMLString::equals(fMsgDomain, XMLUni::fgExceptDomain))
fDomainOfs = 0x2000;
else if (XMLString::equals(fMsgDomain, XMLUni::fgValidityDomain))
fDomainOfs = 0x4000;
else if (XMLString::equals(fMsgDomain, XMLUni::fgXMLDOMMsgDomain))
fDomainOfs = 0x6000;
else
XMLPlatformUtils::panic(PanicHandler::Panic_UnknownMsgDomain);
}
Win32MsgLoader::~Win32MsgLoader()
{
XMLPlatformUtils::fgMemoryManager->deallocate(fMsgDomain);//delete [] fMsgDomain;
}
// ---------------------------------------------------------------------------
// Implementation of the virtual message loader API
// ---------------------------------------------------------------------------
//
// This is the method that actually does the work of loading a message from
// the attached resources. Note that we don't use LoadStringW here, since it
// won't work on Win98. So we go the next level down and do what LoadStringW
// would have done, since this will work on either platform.
//
bool Win32MsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars)
{
// In case we error return, and they don't check it...
toFill[0] = 0;
// Adjust the message id by the domain offset
const unsigned int theMsgId = msgToLoad + fDomainOfs;
//
// Figure out the actual id the id, adjusting it by the domain offset.
// Then first we calculate the particular 16 string block that this id
// is in, and the offset within that block of the string in question.
//
const unsigned int theBlock = (theMsgId >> 4) + 1;
const unsigned int theOfs = theMsgId & 0x000F;
// Try to find this resource. If we fail to find it, return false
HRSRC hMsgRsc = ::FindResourceEx
(
fModHandle
, RT_STRING
, MAKEINTRESOURCE(theBlock)
, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)
);
if (!hMsgRsc)
return false;
// We found it, so load the block. If this fails, also return a false
HGLOBAL hGbl = ::LoadResource(fModHandle, hMsgRsc);
if (!hGbl)
return false;
// Lock this resource into memory. Again, if it fails, just return false
const XMLCh* pBlock = (const XMLCh*)::LockResource(hGbl);
if (!pBlock)
return false;
//
// Look through the block for our desired message. Its stored such that
// the zeroth entry has the length minus the separator null.
//
for (unsigned int index = 0; index < theOfs; index++)
pBlock += *pBlock + 1;
// Calculate how many actual chars we will end up with
const XMLSize_t actualChars = ((maxChars < (XMLSize_t)*pBlock) ? maxChars : (XMLSize_t)*pBlock);
// Ok, finally now copy as much as we can into the caller's buffer
wcsncpy(toFill, pBlock + 1, actualChars);
toFill[actualChars] = 0;
return true;
}
bool Win32MsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2
, const XMLCh* const repText3
, const XMLCh* const repText4
, MemoryManager* const manager)
{
// Call the other version to load up the message
if (!loadMsg(msgToLoad, toFill, maxChars))
return false;
// And do the token replacement
XMLString::replaceTokens(toFill, maxChars, repText1, repText2, repText3, repText4, manager);
return true;
}
bool Win32MsgLoader::loadMsg(const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2
, const char* const repText3
, const char* const repText4
, MemoryManager* const manager)
{
//
// Transcode the provided parameters and call the other version,
// which will do the replacement work.
//
XMLCh* tmp1 = 0;
XMLCh* tmp2 = 0;
XMLCh* tmp3 = 0;
XMLCh* tmp4 = 0;
bool bRet = false;
if (repText1)
tmp1 = XMLString::transcode(repText1, manager);
if (repText2)
tmp2 = XMLString::transcode(repText2, manager);
if (repText3)
tmp3 = XMLString::transcode(repText3, manager);
if (repText4)
tmp4 = XMLString::transcode(repText4, manager);
bRet = loadMsg(msgToLoad, toFill, maxChars, tmp1, tmp2, tmp3, tmp4, manager);
if (tmp1)
manager->deallocate(tmp1);//delete [] tmp1;
if (tmp2)
manager->deallocate(tmp2);//delete [] tmp2;
if (tmp3)
manager->deallocate(tmp3);//delete [] tmp3;
if (tmp4)
manager->deallocate(tmp4);//delete [] tmp4;
return bRet;
}
XERCES_CPP_NAMESPACE_END
@@ -0,0 +1,112 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Win32MsgLoader.hpp 570552 2007-08-28 19:57:36Z amassari $
*/
#if !defined(XERCESC_INCLUDE_GUARD_WIN32MSGLOADER_HPP)
#define XERCESC_INCLUDE_GUARD_WIN32MSGLOADER_HPP
#include <windows.h>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLMsgLoader.hpp>
XERCES_CPP_NAMESPACE_BEGIN
//
// This is a simple in Win32 RC message loader implementation.
//
class XMLUTIL_EXPORT Win32MsgLoader : public XMLMsgLoader
{
public :
// -----------------------------------------------------------------------
// Public Constructors and Destructor
// -----------------------------------------------------------------------
Win32MsgLoader(const XMLCh* const msgDomain);
~Win32MsgLoader();
// -----------------------------------------------------------------------
// Implementation of the virtual message loader API
// -----------------------------------------------------------------------
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const XMLCh* const repText1
, const XMLCh* const repText2 = 0
, const XMLCh* const repText3 = 0
, const XMLCh* const repText4 = 0
, MemoryManager* const manger = XMLPlatformUtils::fgMemoryManager
);
virtual bool loadMsg
(
const XMLMsgLoader::XMLMsgId msgToLoad
, XMLCh* const toFill
, const XMLSize_t maxChars
, const char* const repText1
, const char* const repText2 = 0
, const char* const repText3 = 0
, const char* const repText4 = 0
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
private :
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
Win32MsgLoader();
Win32MsgLoader(const Win32MsgLoader&);
Win32MsgLoader& operator=(const Win32MsgLoader&);
// -----------------------------------------------------------------------
// Private data members
//
// fDomainOfs
// This is the id offset for the current domain. Its used to bias
// the zero based id of each domain, since they are stored in the
// same file and have to have unique ids internally. This is set
// in the ctor from the domain name. We just have to agree with
// what our formatter in the NLSXlat program does.
//
// fModHandle
// This is our DLL module handle that we need in order to load
// resource messages. This is set during construction.
//
// fMsgDomain
// This is the name of the error domain that this loader is for.
// -----------------------------------------------------------------------
unsigned int fDomainOfs;
HINSTANCE fModHandle;
XMLCh* fMsgDomain;
};
XERCES_CPP_NAMESPACE_END
#endif
@@ -0,0 +1,16 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Version.rc
//
#define DummyString 1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif