00001 # 00002 # minixsv, Release 0.9.0 00003 # file: __init__.py 00004 # 00005 # minixsv package file 00006 # 00007 # history: 00008 # 2004-10-26 rl created 00009 # 00010 # Copyright (c) 2004-2008 by Roland Leuthe. All rights reserved. 00011 # 00012 # -------------------------------------------------------------------- 00013 # The minixsv XML schema validator is 00014 # 00015 # Copyright (c) 2004-2008 by Roland Leuthe 00016 # 00017 # By obtaining, using, and/or copying this software and/or its 00018 # associated documentation, you agree that you have read, understood, 00019 # and will comply with the following terms and conditions: 00020 # 00021 # Permission to use, copy, modify, and distribute this software and 00022 # its associated documentation for any purpose and without fee is 00023 # hereby granted, provided that the above copyright notice appears in 00024 # all copies, and that both that copyright notice and this permission 00025 # notice appear in supporting documentation, and that the name of 00026 # the author not be used in advertising or publicity 00027 # pertaining to distribution of the software without specific, written 00028 # prior permission. 00029 # 00030 # THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD 00031 # TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- 00032 # ABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 00033 # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 00034 # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00035 # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 00036 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 00037 # OF THIS SOFTWARE. 00038 # -------------------------------------------------------------------- 00039 00040 00041 ###################################################################### 00042 # PUBLIC DEFINITIONS 00043 ###################################################################### 00044 00045 00046 # supported XML interfaces 00047 00048 XMLIF_MINIDOM = "XMLIF_MINIDOM" 00049 XMLIF_4DOM = "XMLIF_4DOM" 00050 XMLIF_ELEMENTTREE = "XMLIF_ELEMENTTREE" 00051 00052 00053 00054 # namespace definitions 00055 00056 EMPTY_PREFIX = None 00057 00058 EMPTY_NAMESPACE = None 00059 XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace" 00060 XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/" 00061 XSD_NAMESPACE = "http://www.w3.org/2001/XMLSchema" 00062 XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance" 00063 00064 00065 # definition of minixsv path 00066 00067 import os 00068 MINIXSV_DIR = os.path.dirname(__file__) 00069 00070 00071 # error handling definitions 00072 00073 from xsvalErrorHandler import IGNORE_WARNINGS, PRINT_WARNINGS, STOP_ON_WARNINGS 00074 from xsvalErrorHandler import XsvalError 00075