~ubuntu-branches/ubuntu/oneiric/ocsigen/oneiric

« back to all changes in this revision

Viewing changes to xmlp4/xhtmlcompact_streams.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stephane Glondu
  • Date: 2009-07-02 10:02:08 UTC
  • mfrom: (1.1.9 upstream) (4.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090702100208-n158b1sqwzn0asil
Tags: 1.2.0-2
Fix build on non-native architectures

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Ocsigen
 
2
 * Copyright (C) 2005 Vincent Balat
 
3
 * Laboratoire PPS - CNRS Universit� Paris Diderot
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU Lesser General Public License as published by
 
7
 * the Free Software Foundation, with linking exception;
 
8
 * either version 2.1 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *)
 
19
 
 
20
(** XHTML "compact printing" (no pretty printing, no line breaks added) *)
 
21
 
 
22
(** Ocsigen's compact printer for xhtml. [html_compat] is an option to set
 
23
   if you want to print with a syntax closer to html (not xml).
 
24
 *)
 
25
val xhtml_stream :
 
26
    ?version:[< XHTML.M.doctypes > `XHTML_01_01 ] ->
 
27
      ?width:int -> ?encode:(string -> string) ->
 
28
        ?html_compat:bool ->
 
29
          [ `Html ] XHTML.M.elt -> string Ocsigen_stream.t
 
30
 
 
31
(** Ocsigen's compact printer for xhtml portions.
 
32
   [html_compat] is an option to set
 
33
   if you want to print with a syntax closer to html (not xml). *)
 
34
val xhtml_list_stream :
 
35
    ?version:[< XHTML.M.doctypes > `XHTML_01_01 ] ->
 
36
      ?width:int -> ?encode:(string -> string) ->
 
37
        ?html_compat:bool ->
 
38
          'a XHTML.M.elt list -> string Ocsigen_stream.t
 
39