X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Futils%2FqName.mli;fp=src%2Futils%2FqName.mli;h=081c24d5975e43c7ca009dca7be59ce830d0f15a;hp=0000000000000000000000000000000000000000;hb=30bc0bb1291426e5e26eb2dee1ffc41e4c246349;hpb=d9c0e4863807eaf472e875a4bad35cfefe985c95 diff --git a/src/utils/qName.mli b/src/utils/qName.mli new file mode 100644 index 0000000..081c24d --- /dev/null +++ b/src/utils/qName.mli @@ -0,0 +1,71 @@ +(***********************************************************************) +(* *) +(* TAToo *) +(* *) +(* Kim Nguyen, LRI UMR8623 *) +(* Université Paris-Sud & CNRS *) +(* *) +(* Copyright 2010-2012 Université Paris-Sud and Centre National de la *) +(* Recherche Scientifique. All rights reserved. This file is *) +(* distributed under the terms of the GNU Lesser General Public *) +(* License, with the special exception on linking described in file *) +(* ../LICENSE. *) +(* *) +(***********************************************************************) + +(* + Time-stamp: +*) + +(** Implementation of qualified names as hashconsed strings *) + +include Sigs.HCONS.S with type data = string +include Sigs.AUX.Printable with type t := t + + +val of_string : string -> t +(** Utility function, equivalent to [make] *) + +val to_string : t -> string +(** Utility function, equivalent to [node] *) + + +(** Special constants, that denote the QName of nodes that are not + elements (using the nodeValue property of DOM for such nodes. +*) + +val document : t +(** Represents the QName of a document node. Equivalent to + [of_string "#document"] +*) + +val text : t +(** Represents the QName of a text node. Equivalent to + [of_string "#text"] +*) + +val cdata_section : t +(** Represents the QName of a document node. Equivalent to + [of_string "#cdata-section"] +*) + +val comment : t +(** Represents the QName of a comment node. Equivalent to + [of_string "#cdata-section"] +*) + +val document_fragment : t +(** Represents the QName of a document fragment. Equivalent to + [of_string "#document-fragment"] +*) + +val attribute_map : t +(** Represents the QName of a dummy document node holding the + attributes of the current element. Equivalent to + [of_string "#attribute-map"] +*) + +val nil : t +(** Represents the QName of a nil node. Equivalent to + [of_string "#"] +*)