Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
7e1c5fcd
Commit
7e1c5fcd
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2005-03-29 01:03:23 by beppe] Function cleaning
Original author: beppe Date: 2005-03-29 01:03:23+00:00
parent
04c430a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/fomanual/xml2fo.cd
View file @
7e1c5fcd
(* Input Types *)
include "../../web/siteTypes.cd";;
(* Output Types *)
include "fo_dtd.cd";;
(*include "typeFO.cd";;*)
(** Command line **)
...
...
@@ -193,7 +195,7 @@ let highlight (String -> [ (Char| inline)* ] )
let
li
reItem (it : [Item+]): [block*] =
let re
ad
Item (it : [Item+]): [block*] =
transform it with
| <box title=t link=x>c ->
[<fo:block id=x>[
...
...
@@ -213,7 +215,7 @@ let lireItem (it : [Item+]): [block*] =
space-after="40pt"
space-before="85pt"
color="black" >[!title1]
] !(
li
reItem litem)
] !(re
ad
Item litem)
]]
| _ -> raise "ERROR"
...
...
@@ -227,28 +229,22 @@ let gen_page (page : Page, cduce_version : Latin1) : [block+] =
|<page ..>[(<title>title1 (<banner>_)? litem::Item+)] ->(
let sortie : [block+]=
[
<fo:block text-align="center" space-before="130pt">[
<fo:block font-size="35pt" font-weight="bold">"CDuce Programming Language"
<fo:block font-size="35pt" font-weight="bold" space-after="20pt">[!title1]
<fo:block font-size="18pt" font-weight="bold">("Language Version "@cduce_version)
]
!(lireItem litem)]
<fo:block font-size="35pt" font-weight="bold">"CDuce Programming Language"
<fo:block font-size="35pt" font-weight="bold" space-after="20pt">[!title1]
<fo:block font-size="18pt" font-weight="bold">("Language Version "@cduce_version)
]
!(readItem litem)]
in sortie)
let load_include (Latin1 -> [Any*])
name ->
(* let _ = print [ 'Loading ' !name '... \n' ] in *)
xtransform [ (load_xml name) ] with
| <include file=(s & Latin1)>[] -> load_include s
| <include-verbatim file=(s & Latin1)>[] -> load_file s
in
match argv [] with
| [ (inp_file & Latin1) (out_file & Latin1) (cduce_version & Latin1) ]
-> (try let ([ main_page ]) = (load_include inp_file :? [ Page ]) in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment