tng         2002/11/12 09:27:49

  Modified:    c/src/xercesc/util/MsgLoaders/ICU ICUMsgLoader.cpp
               c/src/xercesc/util/MsgLoaders/ICU/resources en_US.txt
  Log:
  DOM Message: add new domain for DOM Messages.
  
  Revision  Changes    Path
  1.7       +7 -3      xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/ICUMsgLoader.cpp
  
  Index: ICUMsgLoader.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/ICUMsgLoader.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ICUMsgLoader.cpp  4 Nov 2002 22:24:43 -0000       1.6
  +++ ICUMsgLoader.cpp  12 Nov 2002 17:27:49 -0000      1.7
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.7  2002/11/12 17:27:49  tng
  + * DOM Message: add new domain for DOM Messages.
  + *
    * Revision 1.6  2002/11/04 22:24:43  peiyongz
    * Locale setting for message loader
    *
  @@ -140,6 +143,7 @@
       ***/
       if (!XMLString::equals(msgDomain, XMLUni::fgXMLErrDomain)    &&
           !XMLString::equals(msgDomain, XMLUni::fgExceptDomain)    &&
  +        !XMLString::equals(msgDomain, XMLUni::fgXMLDOMMsgDomain)    &&
           !XMLString::equals(msgDomain, XMLUni::fgValidityDomain)   )
       {
           XMLPlatformUtils::panic(XMLPlatformUtils::Panic_UnknownMsgDomain);
  @@ -157,8 +161,8 @@
   
             REVISIT: another approach would be: through some system API
                          which returns the directory of the XercescLib and
  -                       that directory would be used to locate the 
  -                               resource bundle    
  +                       that directory would be used to locate the
  +                               resource bundle
       ***/
       char locationBuf[1024];
       memset(locationBuf, 0, sizeof locationBuf);
  @@ -188,7 +192,7 @@
        ***/
        err = U_ZERO_ERROR;
        fDomainBundle = ures_getByKey(fLocaleBundle, domainName, NULL, &err);
  - 
  +
        if (!U_SUCCESS(err) || fDomainBundle == NULL)
        {
            XMLPlatformUtils::panic(XMLPlatformUtils::Panic_CantLoadMsgDomain);
  
  
  
  1.2       +28 -1     xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/en_US.txt
  
  Index: en_US.txt
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/en_US.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- en_US.txt 7 Nov 2002 19:48:18 -0000       1.1
  +++ en_US.txt 12 Nov 2002 17:27:49 -0000      1.2
  @@ -291,6 +291,8 @@
                "The schemaLocation attribute does not contain pairs of values. " ,
                "Internal error: don't have a GrammarResolver for TraverseSchema " ,
                "Fatal error encountered during schema scan " ,
  +             "Reference to external entity declaration '{0}' is not allowed in a 
standalone document. " ,
  +             "Partial markup in parameter entity replacement text in a complete 
declaration. " ,
                "F End " ,
                } 
   
  @@ -298,7 +300,7 @@
         // an array 
        XMLValidity { 
                "E Start " , 
  -             "en_US, Unknown element '{0}' " ,
  +             "Unknown element '{0}' " ,
                "Attribute '{0}' not defined " ,
                "Notation '{0}' was referenced but never declared " ,
                "Root element different from DOCTYPE " ,
  @@ -765,6 +767,31 @@
                "MapAndSum: There is not a complete functional mapping between the 
particles " ,
                "Particle derivation: Invalid content spec node type " ,
                "NodeIDMap overflows and exceeds the largest available size " ,
  +             "F End " ,
  +             } 
  +
  +
  +      // an array 
  +     XMLDOMMsg { 
  +             "F Start " , 
  +             "The index or size is negative, or greater than the allowed value " ,
  +             "The specified range of text does not fit into the String " ,
  +             "An attempt was made to insert a node where it is not permitted " ,
  +             "A node is used in a different document than the one that created it " 
,
  +             "An invalid or illegal XML character is specified " ,
  +             "Data is specified for a node which does not support data " ,
  +             "An attempt is made to modify an object where modifications are not 
allowed " ,
  +             "An attempt is made to reference a node in a context where it does not 
exist " ,
  +             "The implementation does not support the requested type of object or 
operation " ,
  +             "An attempt is made to add an attribute that is already in use 
elsewhere " ,
  +             "A parameter or an operation is not supported by the underlying object 
" ,
  +             "An invalid or illegal string is specified " ,
  +             "An attempt is made to modify the type of the underlying object " ,
  +             "An attempt is made to create or change an object in a way which is 
incorrect with regard to namespaces " ,
  +             "An attempt is made to use an object that is not, or is no longer, 
usable " ,
  +             "A call to a method such as insertBefore or removeChild would make the 
Node invalid with respect to document grammar " ,
  +             "The container of a boundary-point of a Range is being set to either a 
node of an invalid type or a node with an ancestor of an invalid type " ,
  +             "The boundary-points of a Range do not meet specific requirements " ,
                "F End " ,
                } 
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to