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 | DESCRIPTION | CONTENT | ELEMENTS (* multiple elements allowed) | ATTRIBUTES |
---|---|---|---|---|
document | Container for document forms – root tag of the XML | watermark form* | units height width offset-x offset-y rows cols | |
watermark | Watermark 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 | |
form | Layout 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 | |
head | Page layout for form | box* | font-face font-size shade rgb red green blue background-shade background-rgb background-red background-green background-blue | |
body | Lines of text/images for page. Automatically paginated | heading line* imagetab newpage rule | ||
tail | Additional 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 | |
box | Container 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 rotate | |
bar | Vertical bar in box | position in units from left side of box | width shade red green blue | font-face font-size shade rgb red green blue background-shade background-rgb background-red background-green background-blue width |
barcode | Print an ean128 barcode | barcode to print | llx lly height print type | |
heading | Heading to print at start of page | line* rule* | ||
image | Image to display | Local path to image | align anchor bottom fade height no-image-tab pos top width | |
imagetab | Move vertically to at least the bottom of all images | |||
line | Line 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 | |
p | paragraph of text | text to print as paragraph | ||
newpage | New page if another line is printed | |||
pageNumber | print current page number | |||
rule | draw a line across the page | height width shade rgb red green blue | ||
text | Text to be printed | text | 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 |
ATTRIBUTE | VALUES |
---|---|
align | left|center|right |
anchor | Anchor image to top or bottom of line |
background-* | set background colour of a box or text 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 |
grid-* | Background grid shade|red,green,blue |
grid-width | width of grid |
height | number (units) – height of a rule or an underline |
link | Add a link (url etc) to a text element |
llx | number (units) – lower left from side |
llx-even|odd | number (units) – lower left form side on even or odd pages |
lly | number (units) – lower left from bottom |
lly-even|odd | number (units) – lower left from bottom on even or odd pages |
name | text |
newpage | Start 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 |
orientation | landscape|portrait |
orphan | start a new page if this is the last line on a page |
orphan-height | start a new page if height in units can’t fit on the page |
pos | number (units) 0 – anchor position in a line (left or right depending on align) |
rgb | hex value for RGB. NB uppercase required. and no leading #. eg FF0000 (red) |
red | number [0-1] – amount of red in a colour |
rotate | number (degrees anti-clockwise) to rotate box on page. Not that the rotation is around the center of the box. |
rows | number – rows of a form on a page |
shade | number – shade of gray (0 black -< 1 white) |
siblings | number of sibling lines to put on page or skip to new page |
top | display image units below top of line |
underline-* | set underline colour of text to shade or red/green/blue values |
units | in|mm – units of measure, inches or millimeters |
urx | number (units) – top right from left |
ury | number (units) – top right from bottom |
vertical-tab | start a new page |
width | number (units) |