/* */ /* The Apache Software License, Version 1.1 */ /* */ /* Copyright (c) 1999-2000 The Apache Software Foundation. All */ /* rights reserved. */ /* */ /* Redistribution and use in source and binary forms, with or without*/ /* modification, are permitted provided that the following conditions*/ /* are met: */ /* */ /* 1. Redistributions of source code must retain the above copyright */ /* notice, this list of conditions and the following disclaimer. */ /* */ /* 2. Redistributions in binary form must reproduce the above copyrig*/ /* notice, this list of conditions and the following disclaimer in*/ /* the documentation and/or other materials provided with the */ /* distribution. */ /* */ /* 3. The end-user documentation included with the redistribution, */ /* if any, must include the following acknowledgment: */ /* "This product includes software developed by the */ /* Apache Software Foundation (http://www.apache.org/)." */ /* Alternately, this acknowledgment may appear in the software */ /* itself if and wherever such third-party acknowledgments */ /* normally appear. */ /* */ /* 4. The names "Xerces" and "Apache Software Foundation" must */ /* not be used to endorse or promote products derived from this */ /* software without prior written permission. For written */ /* permission, please contact apache\@apache.org. */ /* */ /* 5. Products derived from this software may not be called "Apache",*/ /* nor may "Apache" appear in their name, without prior written */ /* permission of the Apache Software Foundation. */ /* */ /* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED */ /* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES */ /* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ /* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR */ /* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */ /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF */ /* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED & */ /* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,*/ /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT*/ /* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF*/ /* SUCH DAMAGE. */ /* ==================================================================*/ /* */ /* This software consists of voluntary contributions made by many */ /* individuals on behalf of the Apache Software Foundation, and was */ /* originally based on software copyright (c) 1999, International */ /* Business Machines, Inc., http://www.ibm.com . For more information*/ /* on the Apache Software Foundation, please see */ /* . */ /* */ /* */ /* $Log: CrtXMLMsgs,v $ /* Revision 1.1.1.1 2002/02/01 22:22:22 peiyongz /* sane_include /* /* Revision 1.3 2000/02/11 17:48:19 abagchi /* Message change for some Panic return codes /* /* Revision 1.2 2000/02/10 00:15:02 abagchi /* Added Apache Copyright notice /* */ /* Revision 1.2 2000/02/06 07:48:23 swan */ /* Year 2K copyright swat. */ /* */ /*********************************************************************/ /* The following CL source program creates a message file and */ /* adds to the message file the XML parser messages. If the */ /* message file already exists, it just adds the parser messages. */ /* */ /* Copy the stream file to an AS/400 source physical file using */ /* CPYFRMSTMF command. Make sure the target source physical */ /* file has record length of 200 to avoid truncation */ /* Use CRTSRCPF. */ /* After creating the CL program, call it with two argument: */ /* 1) Message file name (recommend QXMLMSG) */ /* 2) Message file library (recommend your product library) */ /* The XML MsgLoader support assumes parser messages are in: */ /* QXMLMSG *LIBL */ /* If you specify a different target message file then QXMLMSG, */ /* you must update the following cpp source to reference the */ /* changed message file name. If you do not run with your product */ /* library in the library list you will also need to change the */ /* library qualifier. */ /* */ /* /src/util/MsgLoaders/MsgFile/MsgLoader.cpp */ /* /src/util/Platforms/OS400/OS400PlatformUtils.cpp */ /*********************************************************************/ PGM PARM(&FILENAME &LIBNAME) DCL VAR(&FILENAME) TYPE(*CHAR) LEN(10) DCL VAR(&LIBNAME) TYPE(*CHAR) LEN(10) MONMSG MSGID(CPF0000) CRTMSGF MSGF(&LIBNAME/&FILENAME) RMVMSGD MSGID(XMLBE00) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE00) MSGF(&LIBNAME/&FILENAME) MSG('Expected comment or CDATA') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE01) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE01) MSGF(&LIBNAME/&FILENAME) MSG('Expected attribute name') SEV(10) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE02) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE02) MSGF(&LIBNAME/&FILENAME) MSG('Expected notation name') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE03) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE03) MSGF(&LIBNAME/&FILENAME) MSG('Repetition of individual elements is not legal for mixed content models') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) + ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE04) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE04) MSGF(&LIBNAME/&FILENAME) MSG('Bad default attribute declaration') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE05) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE05) MSGF(&LIBNAME/&FILENAME) MSG('Expected default attribute declaration, assuming #IMPLIED') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) + LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE06) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE06) MSGF(&LIBNAME/&FILENAME) MSG('Attribute list syntax error') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE07) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE07) MSGF(&LIBNAME/&FILENAME) MSG('Expected equal sign') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB) RMVMSGD MSGID(XMLBE08) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE08) MSGF(&LIBNAME/&FILENAME) MSG('Duplicated attribute name') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) CCSID(*JOB) RMVMSGD MSGID(XMLBE09) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE09) MSGF(&LIBNAME/&FILENAME) MSG('Bad ID ''&1'' for xml:lang attribute') SEV(20) FMT((*CHAR *VARY 2)) DMPLST(*NONE) LVL('12/03/99' 81) CCSID(*JOB) RMVMSGD MSGID(XMLBE0A) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE0A) MSGF(&LIBNAME/&FILENAME) MSG('Expected element name') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) CCSID(*JOB) RMVMSGD MSGID(XMLBE0B) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE0B) MSGF(&LIBNAME/&FILENAME) MSG('Must start with an XMLDecl') SEV(20) DMPLST(*NONE) LVL('12/03/99' 82) CCSID(*JOB) RMVMSGD MSGID(XMLBE0C) MSGF(&LIBNAME/&FILENAME) ADDMSGD MSGID(XMLBE0C) MSGF(&LIBNAME/&FILENAME) MSG('Comments must start with