Docmosis Template Guide



Copyrights

  !" " 
# $" 
%  %
http://www.docmosis.com
  #& "
" "&$ #
 &"'
Trademarks
()(*)%#+ (
,
http://office.microsoft.com/en-us/default.aspx
http://www.microsoft.com/windows/
-"
.
+ -",
http://www.adobe.com/products/acrobat/adobepdf.html
//#+//#
http://www.openoffice.org
"/+"/"0 
http://www.libreoffice.org
# 

*
Preface
Contents
1 INTRODUCTION......................................................................................................VII
*#&
) 1&
)  1&
2%#%+1&
34
34
3-&4
34
354
3644
37#4
35#*4
338!9"4
3:62#4
2 DEVELOPING DOCMOSIS TEMPLATES.....................................................................15
9#3
;#4(+!;:
;#-(+!;:
-"(*)&<
9-;#(*)=
9-;#//0"/)=
84>
39#
:-&2+
<,
=5#3
=?*#-?5#*:
=?*#%?5#*=
>">
>,%>
>5#%
>-#5%,8,
>,
>3-&"
3
(### :
5#<
 #

*
95#<
<
) -,8>
3>
32>
3>
3*#>
#/ 8+>
3 APPLYING A RENDERER ..........................................................................................41
5
895
8985
;# )##85
;# #"853
#& 

*
Preface
) 

 
&% % %  
" "##
"@&
 

&&#
A (*)B//#)"/)C %"
" #&# 
% 
//"/" "
 #""9 " % 
//B "/ %
Note
D%9%  %%BD &+%
%  9# &&  " "
%  "% %B  # #  " 
& 
Conventions used in this guide
 # &  # # # 
4# 4
4 ++ E ( E
<<fieldname>>
- 9)#
9//0"/)
docmosis.###
-F &B

-" %   % 
 #$ & "
 
...
-#  #'
%4 
 &
template.doc
-B4)"
"F# &
-B % %
)   B #   &
 #
 #&

*
 E ( E
 (*)
 //#)"/
)
"F &
Special paragraphs
9 4&B%
  
Note
-&# %   
 #+
Important
64# %"%
9  
Tip
-&  "# 
# " # "#
General Terminology
*& 
 %#"& 7  
#F B  2 
%% %  &# 
  " 
   ""
%
" # 4 "
& &# & 
 "
  &#
9 &
" 
"F#
#& 

*
Preface
1 Introduction
!!%  #% @&
& "##" 

  %#F(*)G//
)G"/)G-"2(#!
&###"&# %#F
"G
"G
"
9  B%&" 
##
&, B&#
1.1 Separating content from presentation
&# # % #D
"# #A %#B
CB ;#B
&%  %
"F
 & "# % 
4  "&# %
%G
8# #'%&B%  "
#4&
9 "BF 
 B%  #
& &"
1.2 What are templates?
-B(*)//#)
 B+ 
4 
%#'#
%#&A(*)><%B//#)
%C
 #&
*
-%#&B(*)
//#0"/)#&& F
#HB#BG
# G
#   "#  G
"4B# "
#  %  
#'" / 
B  %     
" "'% 
   &" 
Tip
9B #   "
#B &#  2%&B
"#B# "&# 

1.3 Where are the templates stored?
$&%FB
@A&B9*C#
IJ%B%      "
 #
"##B 
&D5
1.4 How does document generation work?
9 B# &" 
%    
"F
BB&%" G
" &
##B  B
#%  # AC
""A"BB@&/"KCB
04B"#% +#
""  #
9 4"B%
 " #
#& 

*
Preface
1.5 Template features
(%" &%  # !
'###8 # 
B& & % 4
%#"/   
& 
In this section:
General features.9" # "
4& # !'G
Advanced features.  "
G
Docmosis elements.  %  
#
1.5.1 General features
( # &"#%+%
 ' "B 
% '&% 
 # "#B
49
% B  
# %#%F
) ) ,
4+ 4+ %
(# 9 %
8++ 9# 9#
1.5.2 Advanced features
# &B
" &#F
94# "B "G
94G
2+9G
5#G
"%4G
"&G
 #4
*
7""4G
##
1.5.3 Docmosis elements
-IJ"B4#%  
""++#6  
#9#B"#A 4C"
&#+
1.5.3.1 Field Reference
 %#"&'+  4 
  4 #
6  ,#6
<<name>>
5 "% &"
IJ
<<link_name>>
9 + B+# ;5
  +?? ;5
4   ;5"%  
FL4MNLM#?mySite|
http://www.my.com?
<<$abc=name>>
<<$abc=10.2>>
<<$abc='Fred'>>
<<$abc=true>>
<<$abc=null>>
+ % IJ#
 &"I"J
-# "&"O"
-# #??&"O"
-# "&"O"
-# &&"O"
<<$abc>>
+ &"I"J&
<<cs_name>>
<<cs_{expr}>>
<<cs_$abc>>
- #
4# &% IJ
 4I4J &"I"J
<<es_name>>
<<es_{expr}>>
<<es_$abc>>
<<es_>>
<<rs_name>>
<<rs_$abc>>
<<rs_people:step
2>>
<<rs_people:step
2down>>
- #% 
 % IJ &"I"J
I7J  AIJC "
7H) #B
&"OBOBO7
 &" 
I7%J  AIJC "
7H "
I%J!%"OBOBO7

<<es_name>>
<<es_$abc>>
<<es_people:s
tep2>> or
<<es_>>
<<cr_name>>
<<cr_{expr}>>
<<cr_$abc>>
9 %#"%# &
% IJ4I4J &"
I"J
<<er_name>>
<<er_{expr}>>
<<er_$abc>>
<<er_>>
#4 

*
Preface
6  ,#6
<<rr_name>>
<<rr_$abc>>
<<rr_people:step
2>>
5 %#"%%  
% IJ &"I"J
I7J  AIJC "
7H) #B
&"OBOBO7
 &" 
<<er_name>>
<<er_$abc>>
<<er_>>
<<cc_name>>
<<cc_{expr}>>
<<cc_$abc>>
94 "# 
# &% IJ 
4I4J &"I"J
9#"++
% "
“img_name”
(
"bm_name")
5 #%  #% 
IJ# ##A%   C
 #" #"# 

docmosis.analyzer.image.scaling.default
fitstretch
* &P5
"#
9#"++
% "
“imgstretch_name
5 #%  #% 
IJ  #  
# 
9#"++
% "
“imgfit_name”
5 #%  #% 
IJ # #
 % &# #
<<ref:sub1.doc>>
9 " 
<<refLookup:sub1
>>
+" #  
 
"F'+
Note
,"+% % #(*)$(;*-/9
*-,6*% %""
  #%   %"&
##
1.5.3.2 Expressions
QR4"& %#"
 %4&4  4
AISJC"ASC%ASC"

6 
<<cs_{a<10}>>
+IJless than9IJ
B#
<<cs_{a='fred'}>>
+IJequal to *#IJ
<<cs_{$a!=10}>>
+ &"IJnot equal to &9
&"IJ&&B*#

 #4
*
6 
<<cs_{!
hasElements()}>>
+ I 6ACJboolean negate 9
6AC #  "B %"
&#"A#*#&IJ%&
C7   "+IACJ "
"#@&
<<cs_{a=null}>>
+ IJP&
<<cs_{$a}>>
 & &"O
Other operators include
<=
>=
 '
 '
1.5.3.3 Nesting
6"IJ% # % +4B
<<hotel.floor>>% %  "K IJ
  "%& 4 
"
1.5.3.4 Range Specifiers
""ranges& + 
&%%   &9
 4 %  %
&A%#% C4B
#4&B"+
 %#" #&"
6 
<<hotel[0]>>
  A4#HC
<<hotel[F]>>
  A'&4HC
<<hotel[L]>>
  
<<hotel[*]>>
- 
<<hotel[F3]>>
  
<<hotel[L3]>>
  
<<hotel[1,2,4]>>
  4B
<<hotel[1-3,L2]>>
  4& 
<<hotel[0-L2]>>
-"  
<<hotel[3].floor[L].room[0].name>>
     4
1.5.3.5 Built-In Variables
&"!&"% +
'
" 
<<$top>>
or <<$root>>
  # 4
 
#4 

*
Preface
" 
<<$this>>
or <<$current>>
   
 %+
 <<$current[0]>>
<<$parent>>
  4 
-%+ I J%  
4IJ4
<<$idx>>
 4% # # 4B
%#& B$idx% 4
  %7 LLO%4MM 
#H# 
<<$itemnum>>
*O4" " %  %
#9"#7 
LLO%MM #H# 

<<$size>>
 H #4%
#& BOH%" " 
<<$i1>>,<<$i2>>,..<<$iN>>
5 7 % #?7?
4<<rs_people:step3>>  #  
??&"OBO
O  
" ?7?
=5#A#3C>5#%A#
C
<<$idx1>>,<<$idx2>>,..<<$idxN>>
 "4 % #% ?
7?A""&C#H
<<$itemnum1>>,<<$itemnum2>>, ...
<<$itemnumN>>
 "4 % #% ?
7?A""&C#
<<$rownum>>
 %"A#C% #A 
#%#C % 
# I#J& O"
<<$rowidx>>
 %"A#C% #A 
#%#C % 
# I#J& O4"
Note
""#var_$ <<$name>>'&
<<var_name>> "++###&"(*)B
%  $" "++
1.5.3.6 Error Handling
%%% ##F
 % 97/ #! # # 
##
  %4"
 #4
*
 " &4" 
&%  # " &% 
B" %&"* &P5

#4& 

*
2 Developing Docmosis templates
 "&#F
 B"# G
 AC
 " # #BB"B
#B 
Tip
) #B %  %
  &  G&
  " # & '9#B
 &#"&% 
(   &" %F% 
 B& 
Important
-      '' 
%  & %%  
 
9B !"
2.1 Incorporating Docmosis elements
$??6  &
 %  
#"##B4 
&&#%   
 4 
#F
4+!
(#(*)
9//)"/)
4+!  #% % 
% #) " ))BA(#9C
&&% ?"  ?
 #3

*
Docmosis Template Guide
2.2 Using Plain Text Mark-Up
4+!  #8
B "<< ">>*
 +?7?B%<<personName>> 

*""&" 4B"
#4%#&+!#4
4B<<personName>%"#4"#?M?
 #-single"% <<  >>
%B"% # %#"
 %  %"##
Example Field Valid Problem
<<personName>> <<personName>>
,%"
<<personName> <<personName>
(##M
<personName>> <personName>>
(##L
<< personName>> << personName>>
#LL
<<personName >> <<personName >>
"#MM
< <personName>> < <personName>>
*#L
<<personName> > <<personName> >
*"#M
4+!" F
Property Default Description
docmosis.analyzer.field.plainText.prefix <<
*
docmosis.analyzer.field.plainText.suffix <<
6
The plain text mark-up settings can be changed or disabled on a case by case basis using features of
the DocumentProcessor class. For more information about setting Docmosis properties, please
see the Docmosis Developer's Reference.
2.3 Using Document Fields As Mark-Up
  ??" ))
% 
#



 advantages# F
1. 4  4
 %#F
«friends»
"F
«friends[0].lookupName»
 
#: 

*
2. #0+!9"  
#% % +!
 disadvantages#F
"##"P+& 
'%+%  &#% #

3% )# ??&"A%  
#+&C  ??
: &)+#B##
 + 4B 
B#  % 
'
 %#" %# )
)
2.3.1 About MS Word versions
9#B  
&(*)2%&B  

#"4  #& 
 %# % #"4 &
  &
 #"4&(*)
7%&)A<C+#$
F
4+!
 #<

*
 ,#
)T><
 ,#
)TUAC%
 
)T><
 
)TUAC%
Docmosis Template Guide
#!  
!)P 
"#
2.3.2 To Insert A Field Using MS Word
 " %9#
4+!";#4(+!;
 %+&?7?F
&)<F
    
 *Insert > Field
 9 

#"4B((# Categories
 *(# 
3 firstName A-"(*)&C
: ,+OK
Tip
8B(*) 4 #  

#"4$ # 4 %  ##  #
* 4 "% #"+8% #   
##"  B 
IJ%"&"+ 
Tip
9(*)#' ##
%  ##+ " &"# A 
% C#>AC
&)<F
 ,   
  "&"-"(*)&
2.3.3 To Insert A Field Using Open Office / Libre Office Writer
 " %9#
4+!";#4(+!;
 %+&?7?F
#= 

*
    
 *Insert > Fields > Other
 9 

#"4B Functions"
 *9 Type
3 firstName Reference
: ,+Insert
< )  
9
#"4B "%  
 B 4 %" 
 V# 4%  4 5#
&4!
Note
//#) (*)F//#)
#"+A«…»C 4$ &
&  IJ& %""+ 
- % ??&# + ??
= ,+OK
>  
9
#"4B+Close
Note
) #//) & #% 
%+% &B# ##-B
 !  #
2.4 Basic text elements
    
" AB !! C) &
B%" &  
  #    
#  44F
<<element-name>>
 B #%"
  -#+?7?%
%# % F
 -
Plain Text Field
<<firstName>>
Word Merge Field
«firstName»
Writer Input Field
7
 #>

*
Docmosis Template Guide
% %  4 & 
" 9 +%! B%%#  
#9 + B &
2.5 Images
"#"9#
 #"B %D#
#8 ## %B  % 
#%""%  #- %
%+# B  # 
F
9(*) "++#G
//#) #B#
7

9#"% 
Note
9 #4B""
Tip
 &D # %" B  #$
%#"&B #&
 "
$% 
Use only inline images in MS Word
##(*)" "++
## ) ## #
#B(*)& "++   %
#B&#% 4 #
 #%
# 

*
Image file size
)  #B%" #  
  #&%  A
#BC &H & 
#B &
 # % #!' 
"
Image placeholder naming convention
9# #4 4
%#   "
 "++##  D
#
 4F
4 64 6
img_
img_image1
 #"%  
#

# #? ?
" #""
% # 
imgstretch_
imgstretch_image1
 #"%  
#

 #% # 
" H   #
 
imgfit_
imgfit_image1
 #"%  
#

 #%"  
% &##P
Note
&?"S??#S? ?"S?4&
% ?#S?"P&&
9 %#B#  "
"#"?image1"
 #

*
Docmosis Template Guide
To insert an image element (MS Word):
    #
 *Insert > Picture > From File
 9 
9
#"4B&#   #
 
 ,+Insert
3 )  # B  # 
K  #
: (+  #+Insert > Bookmark
< 9 
8++
#"4Bimg_image1 Bookmark name
= ,+Add
Tip
(*)%  "++# !'"+ "++
B Bookmarks (*)
/
#"4
Tip
(*)8++P?O? &""++
?&S??O?B4?&S??O?
Tip
(*)8++P?? B??+
A#WX C$&"& K%  
"&"#&""++
#LLO9#YWX MM" &"
?#S&S9#? "+++ # #
To insert an image element (OpenOffice.org Writer):
    #
 *Insert > Picture > From File
 9 
9
#"4B&#   #
 
 ,+Open
3 )  # B  # 
K  #
: (+  #+Format > Picture
# 

*
< 9 

#"4B Options"
= img_image1 Name
> ,+OK
8 "++#"'" )
) "'9%  #
B% &&"%   #"

2.6 Active Hyperlinks
% +9
B#&%+%+
+
 +B#% ?link_"4B %#F
<<link_myWebSpace>>
% ++#myWebSpace9 
&http://www.docmosis.commyWebSpaceB  +
http://www.docmosis.com%
$% + 4 + 
;5 +;# "&4B
/,(/*9*

F00%%%
 + B &&
DOCMOSIS|http://www.docmosis.com A|C" 
 +
2.7 Conditional sections
, %" #
  #" 9 B 
%   # 
-4 # " 
 &  %#
 #

*
Docmosis Template Guide
-4
 %    B
 %"#%  "" 
6 #F 
#4F
<<cs_condition-name>>
The text and elements of the conditional section.
<<es_condition-name>> or simply <<es_ >>
Conditional sections can use expressions, variables and range specifiers. See the tables in 1.5.3
Docmosis elements for more information.
The conditional start and end tags are removed from the resulting document and if each tag is on a line
by itself, the entire line will be removed.
To create a conditional section:
  #  # 

 9 # # 
 - "  "'
#  
 9 ## %# 

3 5 #  
# 

*
  

  

2.8 Repeating sections
9B##% 
 #"%  &#
F"+!&B"
Note
"#   
% "+!&#
 # "% %#"%
"A""C 9  
#5#B
%"%  "
 4"% %#IDSetsB"% 
#4 "%" 
% IDSets
5#" 
 #4#F
<<rs_repeating-section-name>>
The text and elements of the repeating section.
<<es_repeating-section-name>> or simply
Repeating sections can be “nested” inside other repeating sections to any depth desired. Repeating
sections can use variables and range specifiers as appropriate. See the tables in 1.5.3 Docmosis
elements for more information.
The repeating start and end tags are removed from the resulting document and if each tag is on a line
by itself, the entire line will be removed.
 #3

*
5#
&
#
Docmosis Template Guide
To create a repeating section:
1.  #  # 
#
2. 9 ## # 
3. - "  "'
#  
4. 9 ## %# 
5#&"!&" O4%   
 "  "#HB
#&??<<$idx>> "4%F
<<rs_people>>
<<$idx>>. <<$name>>
<<es_people>>
 # ++ F
0. James
1. Jenny
2. Julie
% #<<$itemnum>> %F
1. James
2. Jenny
3. Julie
2.8.1 "Stepping Across" in Repeating Sections
 #??*4 &
"KB  #!
F
 ?#?%  %F
#: 

*
 ?F?& %%& #  ??
 OBOO&"
# B  %BOBOO
%  B 4 
% &"'# "#
9 ??B&"OBOBO%4
9!B  # "#
?F?#  'F
 #A# C%+%F
 OBO&"  &
 ??+ 4"&  "K ?? 
??"# # P 4B
  # !#%  #9
)B %""++//)B %" 
#A39#"##C
 #<

*
Docmosis Template Guide
Note
 4  #%ALLSMMC&B" #&
#ALLSMMC
O4BO4OBO&"%  
 OBO&" O4BO4&"& "4 
#HABBBBB3C OBO&"& 
"4#ABBBB3B:C
2.8.2 "Stepping Down" in Repeating Sections
9 %#BB#B
#BB"&#% #  
%%B %B
%"  # "%
& "&4% % &B"%%  % %
     %+%7
  I%J&F
- #B @%"@  4
A@C F
 IJ%  #& 
7  #  4"& %" 
#% B #
#= 

*
2.9 Tables
;#"+B "
9"#"4##  
"B "!F
#4##%G
##%G
&#
2.9.1 Conditional rows
-&%"&"#% 
%#4 <<cr_hasFriends>><<er_hasFriends>>
#%"  "4 
9 B  hasFriends  %#I@ 
J%" #B %%"&9
B %# +<<cr_hasFriends>><<er_hasFriends>>will be
removed:
 #>

*
Docmosis Template Guide
Note
6+%"%  9 "&4B 
<<er_hasFriends>> "LLer_ >>
2.9.2 Repeating rows
5%""%   %#4%
 @#%  %# 
K" 
 %#4 <<rr_friends>><<er_friends>>
#%"  "4 
9 B%  friends %# +
%"9B %# +
<<rr_friends>><<er_friends>> will be removed.
# 

*
2.9.3 Alternating Row Colours and Border Controls
 #%&+#" 
& %F
1. %#% "+#
  # #%A %%  <<rr_xxx>>
CB  "+# %"%  
%D%"+# %& #"B
#%H#
2.  #%A %%  <<rr_xxx>>C "
 #% #%A %%  <<er_xxx>>C
 "" %" !
"!" "+## % # #"
"" %+ %4
 %#4"#"# #%
A# +%B "+#
7 "% #"+# "%
&
 #

*
Docmosis Template Guide
Note
6+#%"%  9 "&4B 
<<er_friends>> "<<er_ >>
(&4#&>3
*#%#"9 B
" %#"# LL5%,#MMALL5%,#MMC
& %#  &F
 LL5%,#MM% "B ##
" "
 9LL5%,#MM "4 A
"C%#"% &##
2.9.4 Conditional columns
-" "& 
%  "4  &" &
  # %#4 %
A<<cc_showJobs>>) at the top of the second column.
) B & %   showJobs

# 

*
 %#4
4
&% "
94 Trial 2Trial 3B% 
4<<cc_{ntrials>1}>> <<cc_{ntrials>2}>>.
9 # 4B BY  
 Trial 2Trial 3%& %"
4  % %#4F
9 # B BYB  Trial 2%
 #B" Trial 3&F
 #

*
Docmosis Template Guide
2.9.5 Advanced table structures
 ##" 
%#4 %&# 
%  %   
 4"&4%" 
"#"% #% 
%#'&"&# % #"F
# 

*
2.10 Lists
%  # 
# Z""#D-# & 
B %"% 
9 %#4B"%"
4
-4
 %B#+
 #""##&#&
9 4B #[*] # friends 
#friend + 
- 4 % B %#
 #3

*
Docmosis Template Guide
 %"  "9 #
friends[F].pets[*]# +type
 # %"%%   #
%# "!&#
4B%%friends[F2].pets[*]  %
#%"+
To create a list:
    
  # A""C
 -  %  # 
2.11 Merging Templates Together
  "" # 
#&&  "
&? ? 
 "#%
 %64
##  B#"+ "B
&  " 
#4B #B
"B#% #  
 B% 
-""B
 
 % 

  
%" 4B
#&#MainProcess.doc % process1.doc
process2.docB%process1.docprocess2.docMainProcess.doc
MainProcess.doc
%%#G6  
4 %#
#: 

*
2.11.1 Direct Referencing
#&B  
 %#4% IFJ
4<<ref:process1.doc>>% process1.doc" 
%#4 % % %+F
2.11.2 Indirect Referencing
  "" B  " 
9 B%+ && 

B 4I+FJ4B%
<<refLookup:process1>>B%+ & 
  +IJ & &%"
   9  4"&
% #B%++ F
2.11.3 Templates in Different Locations
" 4# A 
 4C #9"&Bprocess1.doc
process2.doc4 MainProcess.doc %+
B"%'+"#" %#"

 #<

*
Docmosis Template Guide
4B " "
B%" & &% 
9B # "# K
% "4
#  24%  

 
<<ref:template1.doc>>
4"  #

<<ref:/template1.doc>>
4"??4 4
  4
<<ref:/common/template1.doc>>
4" ??4%
 4
<<ref:../template1.doc>>
4" 4 #

4BKIprojectAlphaJ%   %
 4Iprojects/projectAlphaJ)% #
B% 
corporateHeading.doc) corporateHeading.doc K
 4K- 
)  
K 4IJ) B
 %++ F
 mainDocument.doc%"" 
headerContent.doc# <<ref:/common/headerContent.doc>> or the field
<<ref:../../common/headerContent.doc>>.  %K?F?+ 
G " &# ?+F?+
 & &
Note
9#)B+  #P
 9B  )%%+A%
C9%  &  B % &
ArefLookup:C  Aref:C//)

#= 

*
2.11.4 When A Template Cannot Be Found
## #B
 " %"
## % %  
#B@&64A
11C
-

+ P4" 
#  #  
 % %#+B4
2.11.5 Limitations
  " %#
& 
2.11.5.1 Headers and Footers
 AC   %" #  
-  %"#
 P 

 P""
B" &" 
2.11.5.2 Performance
 4""&" ## 
#& *#%+"
 "#   
%& "H" 
4""
2.11.5.3 Styling Limitations
 +"#% ##/
4%   2# #
 &//B 2## 
#"+ B" #"%(
  " &%"44%
"!
2.12 Page and Other Breaks
&"+##"+B
"+"+9 "+%
% 9 "+
#%" #
 #>

*
Docmosis Template Guide
%"4&B&& "
"+B"%  &# "+ F
 
<<pageBreak>>
9#"+  
<<columnBreak>>
9"+   
  &!#
<<pageBreakNotLast>>
9#"+  % &
 # # &
% #
<<columnBreakNotLast>>
9"+  % &
 # # &
% #% # !

4B## 
#++ F
# 

*
3 Applying a Renderer
  BIJ 
 %& #" #F
 ## "+#A"CG
 ## "B
 ## 4"
% B renderer'%   
 " @&# %""
# A%  " 
&D5C
 
'  %  "
4F
{renderer=myrenderer}
 %  %+ #+ F
<<surname{renderer=myrenderer}>>
Note
5"BDrenderer'%" 
5% #" 4##
Tip
$ "+#% "#%  
'&A C B"#dummy
Important
" '%+B+    
0
Important
(+  '* '"
#B#) 9'B 
 ASC
 #

*
Docmosis Template Guide
3.1.1 Renderer Parameters
5"  "#&
&#  4B %#
 myrendererF
<<surname{renderer=myrenderer(‘strict’)}>>
<<surname{renderer=myrenderer(‘bold’,’relaxed’)}>>
 IJmyrendererB%  I"J
I4Jmyrenderer%@& 

3.1.2 Built In Date Renderer
 "%  &"% '#
@&IJ9% 
 A(((C"# 
 " @&SimpleDateFormat %  " 
@&-9**4" %"% 
SimpleDateFormat"!
F00K&000&## @*6& 
 !@&"K"
'9 4A %#BU(@*/7C 
% 9#
&4B   %"&#
4F
Birth Year=<<birthdate{renderer=date(‘yy’,’yyyy’)}>>
)!#A#I<JC# " !#
A#I><JC
 %#4 "" %!
F
<<birthdate{renderer=date(‘yy’)}>>
% B  A_C"
 % #)
 B "+  "
   "A\_C
 ""% %4#F
Example Field Result
<<birthdate{renderer=date}>>
<(>
<<birthdate{renderer=date(‘E_MMM_yyyy’)}>>
)(>
<<birthdate{renderer=date(‘yyyy’)}>>
>
<<birthdate{renderer=date(‘dd/MM/yyyy’)}>>
<030>
<<birthdate{renderer=date(‘dd’,’yyyy’)}>>
A#
$$$$C
# 

*
 @&D*F
 ,  64
 6# 4 -
 $ $ >>:G>:
( (  (  @G@G<
% )+ 7" <
) )+  7"
  7" =>
   7" 
 %+  7"
6 %+ 4 G
 -0+ 4 (
2 2A!C 7"
+ 2A!C 7" 
V 20A!C 7"
20A!C 7" 
 (  7" 
 * 7" 33
* ( 7" ><=
H H H *G
*G(!=F
[ H 5,=H !=
3.1.3 Built In Boolean Renderer
"A0C&# 
"!I"J 40""
"$07B$07B+0
 "!8+## % 
& " %#" "& "

 6
No parameter
????
"yn"
?$??7?
"ynlc"
????A%C
"yesnouc"
?$6*??7/?AC
"yesnolc"
????
"yesno"
?$??7?A4C
"wingdings1"
%##+
"wingdings2"
%## +"4++
"dingbats1"
#"# +# 
"dingbats2"
#" &+ &
 #

*
Docmosis Template Guide
4B yn8B 
“boolean”#& ‘yn’F
<<isRetired{renderer=boolean(‘yn’)}>>
%  %YN
 8%48&%
 %4BBBB
IJ
3.1.3.1 Using the Wingdings Boolean Renderer
 %##+     
"# %##  %
 'F
  #   # %## %##
F
)   B % %##
  
# 

*
Important
;# # $ 
% &
To insert a formatted boolean value element:
> 9 # "A#>C
 )    B #
 ' #"
 )+%  &  
  & 
3.1.3.2 Using the Dingbats Boolean Renderer
 8& "#" 
;##"' # ' 
%##
$ ) #" B )
 B%#"  
#"8"% ))B 
 897"5

&A&4+U(CB%
-#%IJB %#" %% "
%F
 #3

*
Docmosis Template Guide
Example Field Result
<<myVal>>

<<myVal{renderer=number(‘0.0’)}>>

<<myVal{renderer=number(‘$0.00’)}>>
O
<<myVal{renderer=number(‘0.0E0’)}>>
6
<<myVal{renderer=number(‘###.###’)}>>

<<myVal{renderer=number(‘000.000’)}>>

 # AC@&D
F
,   H1 (#
 7" $ #
\ 7" $ #BH %"
 7" $ 

! 7" $ (#
B 7" $ #
6 7" $ *4
7"'
44
G *"
"
$ *&#&
"
] 44 $ (" %
#
^ 44 $ (" %
&
_
A^-C
44 7 ,#B"
"9"B"
"9
B 

 
P 44 7 ;' 
44B4B?P\P\?
?\?
#'B%%F
?\PP+?
#: 

*