UNIBASE

PS FORMS: How to produce paginated ps forms

NAME: PS FORMS

DESCRIPTION:

This is one of several XSLT transforms provided by UNIBASE. It produces paginated ps forms such as invoices.

XML SPECIFICATION

TAGDESCRIPTIONCONTENTELEMENTS
(* multiple elements allowed)
ATTRIBUTES
documentContainer for document forms – root tag of the XML watermark
form*
units
height
width
offset-x
offset-y
rows
cols
watermarkWatermark to go on each page of the document box*font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
pitch
formLayout for one of more pages head
body
tail?
watermark
name
newpage
orientation
font-face
font-size
offset-x
offset-x-even
offset-x-odd
offset-y
offset-y-even
offset-y-odd
rows
cols
width
align
height
grid-shade
grid-red
grid-blue
grid-green
grid-width
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
pitch
headPage layout for form box*
note
font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
pitch
bodyLines of text/images for page. Automatically paginated heading
line*
imagetab
newpage
rule
font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
pitch
tailAdditional layout at end of form (typically totals etc) box*font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
pitch
boxContainer for page content bar*
line*
imagetab newpage
rule
barcode
font-face
font-size
llx
llx-odd
llx-even
lly
lly-odd
lly-even
urx
urx-odd
urx-even
ury
ury-odd
ury-even
border-width
border-shade
border-rgb
border-red
border-green
border-blue
background-shade
background-rgb
background-red
background-green
background-blue
shade
red
green
blue
corner
corner-left
corner-right
corner-top
corner-bottom
corner-ll
corner-lr
corner-ul
corner-ur
check-height
check-width
check-lines
check-shade
check-red
check-green
check-blue
padding
padding-lr
padding-tb
padding-left
padding-right
padding-top
padding-bottom
rotate
link
pitch
barVertical bar in boxposition in units from left side of boxwidth
shade
red
green
blue
font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue width 
barcodePrint an ean128 barcodebarcode to printllx
lly
height
print
type
headingHeading to print at start of pageline*
rule*
imageImage to displayLocal path to imagealign
anchor
fade
height
link
no-image-tab
pos
top
width
imagetabMove vertically to at least the bottom of all images
lineLine of text/images text*
image*
pageNumber*
p*
font-face
font-size
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
orphan
orphan-height
siblings
vertical-tab
pitch
noteText to display when hovering over element
pparagraph of texttext to print as paragraph
newpageNew page if another line is printed
pageNumberprint current page numberfont-face
font-size
pos
width
align
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
ruledraw a line across the pageheight
shade
rgb
red
green
blue
textText to be printedtext font-face
font-size
link
pos
x
width
align
height
shade
rgb
red
green
blue
background-shade
background-rgb
background-red
background-green
background-blue
underline-shade
underline-rgb
underline-red
underline-green
underline-blue
ATTRIBUTEVALUES
alignleft|center|right
anchorAnchor image to top or bottom of line
background-*set background colour of a box or text to shade or red/green/blue values
bluenumber [0-1] – amount of blue in a colour
border-*draw a border around a box of width points in shade or red/green/blue values
check-*fill box with checks of height x width and colour as shade or red/green/blue values
colsnumber – columns of a form on a page
corner-*put curved corners on box of units radius
fadenumber – < 1 makes image darker, > 1 makes image lighter
font-facepostscript font name
font-sizenumber – printing points (72 points to the inch)
greennumber [0-1] – amount of green in a colour
grid-*Background grid shade|red,green,blue
grid-widthwidth of grid
heightnumber (units) – height of a rule or an underline
linkAdd a link (url etc) to a text element
llxnumber (units) – lower left from side
llx-even|oddnumber (units) – lower left form side on even or odd pages
llynumber (units) – lower left from bottom
lly-even|oddnumber (units) – lower left from bottom on even or odd pages
nametext
newpageStart form on a new page otherwise it follows the previous form
offset-*number (units) – move whole form or document x and y from bottom left
offset-*-*number (units) – move whole form or document x and y from bottom left. even|odd – only for even or odd pages
orientationlandscape|portrait
orphanstart a new page if this is the last line on a page
orphan-heightstart a new page if height in units can’t fit on the page
padding-*Apply padding to container. Content is inside padded area
posnumber (units) 0 – anchor position in a line (left or right depending on align)
rgbhex value for RGB. NB uppercase required. and no leading #. eg FF0000 (red)
rednumber [0-1] – amount of red in a colour
rotatenumber (degrees anti-clockwise) to rotate box on page. Not that the rotation is around the center of the box.
rowsnumber – rows of a form on a page
shadenumber – shade of gray (0 black -< 1 white)
siblingsnumber of sibling lines to put on page or skip to new page
topdisplay image units below top of line
underline-*set underline colour of text to shade or red/green/blue values
unitsin|mm – units of measure, inches or millimeters
urxnumber (units) – top right from left
urynumber (units) – top right from bottom
vertical-tabjump to new vertical position on page
widthnumber (units)
Verified by MonsterInsights