Module type Pxp_core_types_type.CORE_TYPES


module type CORE_TYPES = sig .. end

module StringMap: Map.S  with type key = string
type ext_id = Pxp_type_anchor.ext_id = 
| System of string
| Public of (string * string)
| Anonymous
| Private of private_id
type private_id = Pxp_type_anchor.private_id 

External identifiers are either "system identifiers" (filenames or URLs), or "public identifiers" Public(id,sysid) where "id" is the representation of the public ID, and "sysid" a fallback system ID, or the empty string.

New in PXP 1.0: Sometimes the external ID is not known. This case can be referred to as Anonymous ID (e.g. to initialize a fresh variable).

New in PXP 1.1: Sometimes the external ID needs some special encoding. Private IDs can be used in these cases. Private IDs can be allocated using allocate_private_id (below), and the IDs will be unique and different from all other IDs. This makes it simpler to add hooks recognizing the special IDs they are competent for.

Encoding: The identifiers are _always_ encoded as UTF8 strings, regardless of whether another encoding is configured for the parser.

val allocate_private_id : unit -> private_id
Get a new unique private ID
type resolver_id = Pxp_type_anchor.resolver_id = {
   rid_private : private_id option;
   rid_public : string option;
   rid_system : string option;
   rid_system_base : string option;
}
resolver IDs are used instead of ext_id in resolvers. The difference is that an entity can have three names at the same time: a private name, a PUBLIC name, and a SYSTEM name. Furthermore, the base URL of the system names is stored which is usually just the system name of the opener.
val resolver_id_of_ext_id : ext_id ->
resolver_id
The standard method of converting an ext_id into a resolver ID. A System ID is turned into a resolver_id where only rid_system is set. A Public ID is turned into a resolver_id where both rid_public and rid_system are set. A Private ID is turned into a resolver_id where only rid_private is set. An Anonymous ID is turned into a resolver_id without any value (all components are None).
type dtd_id = Pxp_type_anchor.dtd_id = 
| External of ext_id
| Derived of ext_id
| Internal
type content_model_type = Pxp_type_anchor.content_model_type = 
| Unspecified
| Empty
| Any
| Mixed of mixed_spec list
| Regexp of regexp_spec
type mixed_spec = Pxp_type_anchor.mixed_spec = 
| MPCDATA
| MChild of string
type regexp_spec = Pxp_type_anchor.regexp_spec = 
| Optional of regexp_spec
| Repeated of regexp_spec
| Repeated1 of regexp_spec
| Alt of regexp_spec list
| Seq of regexp_spec list
| Child of string
type att_type = Pxp_type_anchor.att_type = 
| A_cdata
| A_id
| A_idref
| A_idrefs
| A_entity
| A_entities
| A_nmtoken
| A_nmtokens
| A_notation of string list
| A_enum of string list
type att_default = Pxp_type_anchor.att_default = 
| D_required
| D_implied
| D_default of string
| D_fixed of string
type att_value = Pxp_type_anchor.att_value = 
| Value of string
| Valuelist of string list
| Implied_value
class type collect_warnings = object .. end
class drop_warnings : collect_warnings
type warning = [ `W_XML_version_not_supported of string
| `W_code_point_cannot_be_represented of int
| `W_element_mentioned_but_not_declared of string
| `W_entity_declared_twice of string
| `W_multiple_ATTLIST_declarations of string
| `W_multiple_attribute_declarations of string * string
| `W_name_is_reserved_for_extensions of string ]
class type symbolic_warnings = object .. end
val string_of_warning : warning -> string
Turn the warning into a human-readable message
val warn : symbolic_warnings option ->
collect_warnings ->
warning -> unit
Send a warning to the symbolic_warnings object, and then to the collect_warnings object.
type encoding = Netconversion.encoding 
We accept all encodings for character sets which are defined in Netconversion (package netstring).
type rep_encoding = [ `Enc_cp1006
| `Enc_cp437
| `Enc_cp737
| `Enc_cp775
| `Enc_cp850
| `Enc_cp852
| `Enc_cp855
| `Enc_cp856
| `Enc_cp857
| `Enc_cp860
| `Enc_cp861
| `Enc_cp862
| `Enc_cp863
| `Enc_cp864
| `Enc_cp865
| `Enc_cp866
| `Enc_cp869
| `Enc_cp874
| `Enc_iso88591
| `Enc_iso885910
| `Enc_iso885913
| `Enc_iso885914
| `Enc_iso885915
| `Enc_iso885916
| `Enc_iso88592
| `Enc_iso88593
| `Enc_iso88594
| `Enc_iso88595
| `Enc_iso88596
| `Enc_iso88597
| `Enc_iso88598
| `Enc_iso88599
| `Enc_koi8r
| `Enc_macroman
| `Enc_usascii
| `Enc_utf8
| `Enc_windows1250
| `Enc_windows1251
| `Enc_windows1252
| `Enc_windows1253
| `Enc_windows1254
| `Enc_windows1255
| `Enc_windows1256
| `Enc_windows1257
| `Enc_windows1258 ]
exception Validation_error of string
Violation of a validity constraint
exception WF_error of string
Violation of a well-formedness constraint
exception Namespace_error of string
Violation of a namespace constraint
exception Error of string
Other error
exception Character_not_supported
exception At of (string * exn)
The string is a description where the exn happened. The exn value can again be At(_,_) (for example, when an entity within an entity causes the error).
exception Undeclared
Indicates that no declaration is available and because of this every kind of usage is allowed. (Raised by some DTD methods.)
exception Method_not_applicable of string
Indicates that a method has been called that is not applicable for the class. The argument is the name of the method. (New in PXP 1.1)
exception Namespace_method_not_applicable of string
Indicates that the called method is a namespace method but that the object does not support namespaces. The argument is the name of the method. (New in PXP 1.1)
exception Not_competent
The resolver cannot open this kind of entity ID
exception Not_resolvable of exn
While opening the entity, the nested exception occurred
exception Namespace_not_managed of string
A namespace URI is used but not declared in the namespace manager. The string argument is the URI in question. (New in PXP 1.2)
exception Namespace_prefix_not_managed of string
A namespace prefix is used but not declared in the namespace manager. The string argument is the prefix in question. (New in PXP 1.2)
exception Namespace_not_in_scope of string
The namespace scope does not know the URI

(New in PXP 1.2)
val string_of_exn : exn -> string
type output_stream = [ `Out_buffer of Buffer.t
| `Out_channel of Pervasives.out_channel
| `Out_function of string -> int -> int -> unit
| `Out_netchannel of Netchannels.out_obj_channel ]
val write : output_stream -> string -> int -> int -> unit
type pool = Pxp_type_anchor.pool 
val make_probabilistic_pool : ?fraction:float -> int -> pool
val pool_string : pool -> string -> string