-- | -- constants for XML keywords, for special attribute names -- and special attribute values -- -- Version : $Id: XmlKeywords.hs,v 1.14 2004/03/20 14:07:27 hxml Exp $ module XmlKeywords where -- ------------------------------------------------------------ -- -- string constants for representing DTD keywords and attributes t_xml, -- tag names t_root :: String a_default, -- attribute names a_contentLength, a_encoding, a_error, a_kind, a_message, a_modifier, a_name, a_nowarnings, a_outputEncoding, a_peref, a_proxy, a_source, a_status, a_standalone, a_trace, a_type, a_url, a_value, a_version :: String v_yes, -- attribute values v_no, v_any, v_children, v_choice, v_empty, v_mixed, v_seq, v_null, v_option, v_pcdata, v_star, v_plus :: String k_any, -- DTD keywords k_cdata, k_empty, k_enitity, k_entities, k_id, k_idref, k_idrefs, k_include, k_ignore, k_nmtoken, k_nmtokens, k_peref, k_public, k_system, k_enumeration, k_fixed, k_implied, k_ndata, k_notation, k_pcdata, k_required, k_default :: String -- ------------------------------------------------------------ t_xml = "xml" t_root = "/" -- name of root node tag a_contentLength = "Content-Length" a_default = "default" a_encoding = "encoding" a_error = "error" a_kind = "kind" a_message = "message" a_modifier = "modifier" a_name = "name" a_nowarnings = "no-warnings" a_outputEncoding= "output-encoding" a_peref = k_peref a_proxy = "proxy" a_source = "source" a_standalone = "standalone" a_status = "status" a_trace = "trace" a_type = "type" a_url = "url" a_value = "value" a_version = "version" v_yes = "yes" v_no = "no" v_any = k_any v_children = "children" v_choice = "choice" v_empty = k_empty v_pcdata = k_pcdata v_mixed = "mixed" v_seq = "seq" v_null = "" v_option = "?" v_star = "*" v_plus = "+" k_any = "ANY" k_cdata = "CDATA" k_empty = "EMPTY" k_enitity = "ENTITY" k_entities = "ENTITIES" k_id = "ID" k_idref = "IDREF" k_idrefs = "IDREFS" k_include = "INCLUDE" k_ignore = "IGNORE" k_nmtoken = "NMTOKEN" k_nmtokens = "NMTOKENS" k_peref = "PERef" k_public = "PUBLIC" k_system = "SYSTEM" k_enumeration = "#ENUMERATION" k_fixed = "#FIXED" k_implied = "#IMPLIED" k_ndata = "NDATA" k_notation = "NOTATION" k_pcdata = "#PCDATA" k_required = "#REQUIRED" k_default = "#DEFAULT" -- ------------------------------------------------------------ -- -- attribute names for transfer protocol attributes -- used in XmlInput for describing header information -- of http and other requests transferPrefix , transferProtocol , transferMimeType , transferEncoding , transferURI , transferDefaultURI , transferStatus , transferMessage , transferVersion :: String transferPrefix = "transfer-" transferProtocol = transferPrefix ++ "Protocol" transferVersion = transferPrefix ++ "Version" transferMimeType = transferPrefix ++ "MimeType" transferEncoding = transferPrefix ++ "Encoding" transferDefaultURI = transferPrefix ++ "DefaultURI" transferStatus = transferPrefix ++ "Status" transferMessage = transferPrefix ++ "Message" transferURI = transferPrefix ++ "URI" -- ------------------------------------------------------------ -- httpPrefix :: String httpPrefix = "http-" -- ------------------------------------------------------------ -- -- encoding names isoLatin1, usAscii, ucs2, utf8, utf16, utf16be, utf16le :: String isoLatin1 = "ISO-8859-1" usAscii = "US-ASCII" ucs2 = "ISO-10646-UCS-2" utf8 = "UTF-8" utf16 = "UTF-16" utf16be = "UTF-16BE" utf16le = "UTF-16LE" -- ------------------------------------------------------------