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 
formLayout for one of more pages head body tail? watermarkname 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
headPage layout for form box*font-face font-size shade rgb red green blue background-shade background-rgb background-red background-green background-blue
bodyLines of text/images for page. Automatically paginated heading line* imagetab newpage rule
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-blue
boxContainer for page content bar* line* imagetab newpage rule barcodefont-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 rotate
barVertical bar in boxposition in units from left side of boxwidth shade red green bluefont-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 bottom fade height 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
pparagraph of texttext to print as paragraph
newpageNew page if another line is printed
pageNumberprint current page number
ruledraw a line across the pageheight width 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-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
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-tabstart a new page
widthnumber (units)