PS FORMS

by

in

NAME: PS FORMS

DESCRIPTION:

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

XML SPECIFICATION

TAG ATTRIBUTES ELEMENTS CONTENTS
document units height width offset-x offset-y rows cols watermark form* Container for all forms in the document
watermark font-face font-size shade red green blue background-shade background-red background-green background-blue box* watermark to print on each page
form name orientation font-face font-size offset-x offset-y rows cols repeat head body tail? pages of the document
head font-face font-size box* content to put on each page
body font-face font-size box* repeating content for pages
tail font-face font-size box* content at end of form
box font-face font-size llx lly urx ury border-width border-shade border-red border-green border-blue background-shade 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-shade check-red check-green check-blue rotate line* area of text/graphics on a page
bar width shade red green blue vertical line in a box – position in units from left side of box
line font-face font-size shade red green blue text* image* line of text in a box
text font-face font-size pos width align shade red green blue text to be printed
image fade height pos width image to display
ATTRIBUTE VALUES
align left|center|right
background-* set background colour of a box to shade or red/green/blue values
blue number [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
cols number – columns of a form on a page
corner-* put curved corners on box of units radius
fade number – < 1 makes image darker, > 1 makes image lighter
font-face postscript font name
font-size number – printing points (72 points to the inch)
green number [0-1] – amount of green in a colour
height number (units)
llx number (units)
lly number (units)
name text
offset-* number (units) – move whole form or document x and y from bottom left
orientation landscape|portrait
pos number (units) 0 – anchor position in a line (left or right depending on align)
red number [0-1] – amount of red in a colour
repeat number – number of times to repeat
rotate number – degrees anti-clockwise
rows number – rows of a form on a page
shade number – shade of gray (0 black -< 1 white)
units in|mm – units of measure, inches or millimetres
urx number (units)
ury number (units)
width number (units)