# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## List Example

An example showing the different usages of the list tag.

- Template: templates/example2.xsl
- Record: records/empty.xml

## List Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="150" width="150" x="10" y="10" >
<text font-family="Arial" font-size="15" line-spacing="10" >
Unordered List:
<ul line-spacing="10" spacing="5" type="disc" wrapped-line-spacing="1" >
<li>
Text Text Text
</li>
<li>
<span font-size="18,16,14" font-weight="bold" >
Text Text Text
</span>
</li>
<li wrapped-line-spacing="15" >
Text Text Text Text
</li>
<li font-size="12" line-spacing="0" >
Text
</li>
<li>
Text Text
</li>
</ul>
</text>
</field>
<field height="150" width="150" x="190" y="10" >
<text font-family="Arial" font-size="16" line-spacing="15" >
Ordered List:
<ol line-spacing="-4" spacing="2" type="DOT_BRACKET" wrapped-line-spacing="1" >
<li>
Text Text Text
</li>
<li font-size="24,22,20,18" font-weight="bold" wrapped-line-spacing="-3" >
Text Text Text
</li>
<li wrapped-line-spacing="20" >
Text Text Text
</li>
<li font-size="10" line-spacing="0" >
Text
</li>
<li>
Text Text
</li>
</ol>
</text>
</field>
<field height="56" width="380" x="10" y="170" >
<text align="center" font-size="12" >
Floating list:
<br>
</br>
<ul float="true" bullet-font-family="Wingdings" spacing="5" type="ü" >
<li>
Text Text 0
</li>
<li>
Text Text 1
</li>
<li>
Text Text 2
</li>
<li>
Text Text 3
</li>
<li>
Text Text 4
</li>
<li>
Text Text 5
</li>
<li>
Text Text 6
</li>
<li>
Text Text 7
</li>
<li>
Text Text 8
</li>
<li>
Text Text
</li>
</ul>
</text>
</field>
<field height="56" width="380" x="10" y="240" >
<text align="center" font-size="12" >
Floating list with image bullets (magnifier):
<ul float="true" spacing="4" bullet-image="../images/magnifier.png" >
<li>
Text Text 0
</li>
<li>
Text Text 1
</li>
<li>
Text Text 2
</li>
<li>
Text Text 3
</li>
<li>
Text Text 4
</li>
<li>
Text Text 5
</li>
<li>
Text Text 6
</li>
</ul>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Relative Positioning Example

An example showing how to relative position fields and the usage of the max-height attribute.

- Template: templates/example3.xsl
- Record: records/empty.xml

## Relative Positioning Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image font-size="16" height="300" width="400" >
<field max-height="200" width="200" x="10" y="20" >
<text>
Fixed Position
</text>
</field>
<field max-height="100" width="200" x="10" >
<label>
Relative Position
</label>
</field>
<field max-height="100" width="200" x="10" y="200" >
<text>
Second fixed position
</text>
</field>
<field background-color="black" max-height="50" width="100" x="10" >
<text color="white" >
Relative 1
</text>
</field>
<field background-color="black" max-height="50" width="100" x="10" >
<text color="white" >
Relative 2
</text>
</field>
<field max-height="50" width="100" x="10" >
<text>
Relative 3
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Single and Multi Line Example

This example shows the difference between the label tag (single lines only) and the text tag (multi-lines with auto-wrapping). It also shows how letter spacing changes the text output.

- Template: templates/example4.xsl
- Record: records/empty.xml

## Single and Multi Line Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field x="10" y="20" width="200" height="105" >
<label font-size="16" font-weight="bold" align="center" text-decoration="underline" padding-bottom="15" >
Single Line label
</label>
<text font-size="14" align="right" line-spacing="8" >
Multi-line text with automatic wrapping, if the text does not fit into one line
</text>
</field>
<field x="10" y="180" width="300" height="100" >
<text letter-spacing="0" >
Normal letter spacing
</text>
<text letter-spacing="-0.08" >
Negative letter spacing
</text>
<text letter-spacing="0.5" >
Positive letter spacing
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Drawing Example

This example shows different ways of drawing elements, with different borders, background colors and thickness and it also shows how fields are placed onto drawn elements like lines or rectangles.

- Template: templates/example5.xsl
- Record: records/empty.xml

## Drawing Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field border="2" height="30" width="150" x="10" y="20" >
<label font-size="18" >
Bordered field
</label>
</field>
<rect height="50" width="200" x="10" y="80" >
</rect>
<field background-color="black" border="2" border-color="white" height="30" valign="center" width="180" x="20" y="90" >
<label align="center" color="white" >
Label
</label>
</field>
<rect border="5" fill="false" height="50" width="50" x="10" y="150" >
</rect>
<line thickness="5" x-from="10" x-to="210" y-from="220" y-to="220" >
</line>
<rect border="5" height="20" width="300" x="10" y="250" >
</rect>
<line color="white" x-from="20" x-to="300" y-from="260" y-to="260" >
</line>
<line thickness="3" x-from="220" x-to="380" y-from="20" y-to="240" >
</line>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Image Example

This example shows the usage of the image tag for inserting images into the template. Either through a relative path or directly by putting the Base64 encoded string into the template.

- Template: templates/example6.xsl
- Record: records/empty.xml

## Image Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field align="center" height="80" width="380" x="10" y="10" >
<img autoscale="true" src="../images/imagotag.png" >
</img>
</field>
<field align="center" height="190" width="380" x="10" y="100" >
<img data="iVBORw0KGgoAAAANSUhEUgAAAQgAAACwAQAAAADbY83+AAALVElEQVR42u2YfVxTVR/AByIISpvx gIrplmWImvj4miJe0seQLCaZYvLBqWm+O58UMWBcFA0RX8iXtHhwhBaCAVYKKcJEUCzC+VYzFSYK DaWx4Rhju7vnPOecy4Ah0efT3+6P+zm7n+/9vZ9zfufw4N/9eM+J50TXnwJCU8+EDsJN/1CLW+wN bqAiYp4lzGN5g/eTUQOER7ojLvOhOZKMmO4ttYZCV+hM4aGpey0GIZ0J9Ro8ZLu3dFcspVBXu3eE pCthSVWqb0BjDY1EWBBBP0PUt4aH6yCQSSAE4d3KSG3updyYVxe3Eo0LIDz3DAGSh4bkPVXU0qno j7o7S1un+e+F2dNXMHrOW8MzRO2HVR5Mjk/N2ic08Vb5DPGVXBczCQotwnwhEaK2J1gI8mobslRq vk6iyUMvokAXX/TQnJIqb6SNavMQ8y0cr67Ebrp5hVgGi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JCTT81d0FVwpZso7TZudrg45TdNbKwD/+SgaDjTJmUX99Q2LBRhlP 9HCHYsbEWdeeCJymsx49EThNh3x6IKyLkW9H5T0QYMt+yOzp8bZn0j2oH9wj4aWSLVP1SGy/v3mm uEfizvrXBlI93zo5Jwf/zb1Uazz9/DbwOfGPiP8D6F7mPMdSRz4AAAAASUVORK5CYII=" >
</img>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Barcode Example

his example shows the usage of different barcode types.

- Template: templates/example7.xsl
- Record: records/barcode.xml

## Barcode Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="100" width="100" x="10" y="10" >
<barcode autoscale="true" type="qr" >
<xsl:value-of select="Barcodes/Qr" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="100" x="10" y="110" >
<label align="center" >
QR Tag
</label>
</field>
<field height="60" width="100" x="140" y="10" >
<barcode fontName="Tahoma" humanReadableEnabled="true" humanReadablePlacement="top" type="ean13" >
<xsl:value-of select="Barcodes/Ean13" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="100" x="140" y="110" >
<label align="center" >
EAN 13
</label>
</field>
<field height="60" width="140" x="250" y="10" >
<barcode fontName="Tahoma" humanReadableEnabled="true" humanReadablePlacement="top" scale="2" type="ean8" >
<xsl:value-of select="Barcodes/Ean8" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="100" x="270" y="110" >
<label align="center" >
EAN 8
</label>
</field>
<field height="100" width="125" x="10" y="150" >
<barcode autoscale="true" type="code128" >
<xsl:value-of select="Barcodes/Code128" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="125" x="10" y="260" >
<label align="center" >
Code 128
</label>
</field>
<field height="100" width="100" x="140" y="150" >
<barcode autoscale="true" type="datamatrix" >
<xsl:value-of select="Barcodes/DataMatrix" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="100" x="140" y="260" >
<label align="center" >
Datamatrix
</label>
</field>
<field height="60" width="100" x="270" y="150" >
<barcode fontName="Times New Roman" humanReadableEnabled="true" humanReadablePlacement="bottom" type="upc-a" >
<xsl:value-of select="Barcodes/Upca" >
</xsl:value-of>
</barcode>
</field>
<field height="20" valign="bottom" width="100" x="270" y="260" >
<label align="center" >
UPC-A
</label>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Barcode Example (Record)

<Barcodes>
<Qr>
iMAGOTAG
</Qr>
<Ean13>
5449000000996
</Ean13>
<Ean8>
96385074
</Ean8>
<Code128>
iMAGOTAG
</Code128>
<DataMatrix>
iMAGOTAG
</DataMatrix>
<Upca>
544900000093
</Upca>
</Barcodes>

## Generated Image

## Span Example

This example shows the usage of the span tag for formatting text. Including condensing, different font size and text decorations.

- Template: templates/example8.xsl
- Record: records/empty.xml

## Span Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="71" width="380" x="10" y="10" >
<text font-family="Times New Roman" font-size="30" >
Text
<span font-family="Tahoma" font-size="20" font-weight="bold" text-decoration="overline" >
Span
</span>
<span superscript="superscript" font-size="24" >
super
</span>
<span font-size="24" >
normal
</span>
<span font-size="24" superscript="subscript" >
subscript
</span>
</text>
<label font-family="Verdana" font-size="18" >
Label with
<span font-size="26" font-style="italic" text-decoration="underline" >
Span
</span>
<span font-family="Arial" font-size="14" text-decoration="linethrough" >
Span
</span>
</label>
</field>
<field height="60" width="380" x="10" y="90" >
<text condense="1,0.8,0.6,0.4" >
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
</text>
<label font-size="16,12" >
Label Label Label Label Label Label Label Label Label
</label>
<label condense="1,0.8,0.6,0.4" font-size="16" >
Label Label Label Label Label Label Label Label Label
</label>
</field>
<field height="140" width="180" x="10" y="150" >
<text condense="1,0.8,0.6,0.4" font-size="24" >
<ul>
<li>
Text Text Text Text
</li>
<li condense="1" >
Text Text Text Text
</li>
<li>
Text Text Text Text
</li>
<li condense="1" font-size="24,22,20,18,16,14,12" >
Text Text Text Text
</li>
</ul>
</text>
</field>
<field height="140" width="190" x="200" y="150" >
<text condense="1,0.8,0.6,0.4" font-size="24" >
<ol>
<li>
Text Text Text Text
</li>
<li condense="1" >
Text Text Text Text
</li>
<li>
Text Text Text Text
</li>
<li condense="1" font-size="24,22,20,18,16,14,12" >
Text Text Text Text
</li>
</ol>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

### Execution Status

Execution Problem
OptionException: 'overline' is not a valid value for option text-decoration. Possible values are: underline, linethrough or none
ImageRenderingException: at.mrdevelopment.toolkit.options.OptionException: Missing option: text-decoration

## CSS Example

This example uses a CSS file to format and define the template. The used CSS file is found under: css/example.css.

- Template: templates/example9.xsl
- Record: records/empty.xml

## CSS Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<css href="../css/example.css" >
</css>
<field max-height="290" width="300" x="10" y="10" >
<label class="labelClass" font-size="16" >
Label class test
</label>
<text class="textClass" id="text1" >
id: #text1, class: textClass
<span class="spanClass" id="span1" >
id: span1, class: spanClass
</span>
<ul class="listClass" id="ul1" >
<li id="liClass" >
class: liClass
</li>
<li id="liClass" >
class: liClass
</li>
</ul>
</text>
</field>
<rect class="rectClass" id="rect1" >
</rect>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Table Example

This example shows the usage of a table.

- Template: templates/example10.xsl
- Record: records/empty.xml

## Table Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field max-height="280" width="380" x="10" y="10" >
<table table-border="2" header-border="5" header-row="true" valign="bottom" >
<row>
<cell table-width="40%" >
<text>
Wide column
</text>
</cell>
<cell>
<text>
Test
</text>
</cell>
<cell>
<label>
Test
</label>
</cell>
<cell>
<label>
Test
</label>
</cell>
<cell>
<label>
Test
</label>
</cell>
</row>
<row>
<cell>
<text font-size="20" >
Wide column
</text>
</cell>
<cell cellpadding="10" >
<label font-size="20" >
Test
</label>
</cell>
<cell>
<text font-size="20" >
Test
</text>
</cell>
<cell>
<label font-size="20" >
Test
</label>
</cell>
</row>
<row cellpadding="15" table-height="100px" valign="top" align="right" >
<cell>
<text font-size="16" >
Wide column
</text>
</cell>
<cell>
<label font-size="16" >
2
</label>
</cell>
<cell>
<text font-size="16" >
3
</text>
</cell>
<cell table-width="100px" >
<text font-size="16" >
Wide column
</text>
</cell>
</row>
<row>
<cell align="right" cellpadding="0" valign="top" >
<text font-size="16" >
Wide column
</text>
</cell>
<cell>
<label font-size="16" >
Test
</label>
</cell>
<cell>
<text font-size="16" >
Test Test Test Test Test
</text>
</cell>
<cell align="center" table-width="100px" valign="center" >
<label font-size="16" >
Test
</label>
</cell>
</row>
</table>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Rotation Example

This example shows the usage of the rotation attribute.

- Template: templates/example11.xsl
- Record: records/empty.xml

## Rotation Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="80" rotation="-45" width="80" x="0" y="0" >
<label font-size="20" font-weight="bold" >
Aktion!
</label>
</field>
<field height="100" rotation="-90" width="100" x="150" y="0" >
<barcode type="ean13" >
5449000000996
</barcode>
</field>
<field height="80" rotation="180" width="200" x="0" y="100" >
<label font-size="16" font-weight="bold" >
Test Test Test Test Test
</label>
</field>
<field height="50" rotation="270" width="100" x="300" y="0" >
<label font-size="16" font-weight="bold" >
Test Test
</label>
</field>
<field height="70" rotation="-10" width="200" x="100" y="190" >
<img autoscale="true" src="../images/imagotag.png" >
</img>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Dynamic template using default record - 4.41"

This example is based on a dynamic template and the Coca Cola record. The image size depends on the label type.

- Template: templates/default.xsl
- Record: records/coca-cola.xml

## Dynamic template using default record - 4.41" (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<xsl:choose>
<xsl:when test="Label/DisplayHeight = 176 and Label/DisplayWidth = 264" >
<image height="176" width="264" >
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
<field height="36" width="245" x="9" y="10" >
<text font-family="Tahoma" font-size="14" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="47" >
<text align="right" font-family="Impact" font-size="68" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 300 and Label/DisplayWidth = 400" >
<image height="300" width="400" >
<line thickness="2" x-from="0" x-to="400" y-from="236" y-to="236" >
</line>
<field height="90" width="382" x="9" y="10" >
<text font-family="Tahoma" font-size="24" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="18" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="122" width="350" x="40" y="100" >
<text align="right" font-family="Impact" font-size="100" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="320" y="248" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="320" y="266" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="260" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="282" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 800 and Label/DisplayWidth = 480" >
<image height="800" width="480" >
<line thickness="2" x-from="0" x-to="480" y-from="700" y-to="700" >
</line>
<field height="400" width="460" x="10" y="10" >
<text font-family="Tahoma" font-size="48" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="28" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="200" width="460" x="10" y="480" >
<text align="right" font-family="Impact" font-size="120" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="728" >
<text align="right" font-family="Verdana" font-size="26" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="760" >
<text align="right" font-family="Tahoma" font-size="26" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="758" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="780" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

## Dynamic template using default record - 4.41" (Record)

<article articleNumber="5449000000996" >
<field key="pricePerUnit" value="1.65" >
</field>
<field key="unit" value="1 l" >
</field>
<field key="price" value="0.55" >
</field>
<field key="description" value="Dose 0,33 l" >
</field>
<field key="name" value="Coca Cola" >
</field>
</article>

## Generated Image

## Dynamic template using default record - 4.41"

This example is based on a dynamic template and the Chili con carne record. The image size depends on the label type.

- Template: templates/default.xsl
- Record: records/chili-con-carne.xml

## Dynamic template using default record - 4.41" (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<xsl:choose>
<xsl:when test="Label/DisplayHeight = 176 and Label/DisplayWidth = 264" >
<image height="176" width="264" >
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
<field height="36" width="245" x="9" y="10" >
<text font-family="Tahoma" font-size="14" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="47" >
<text align="right" font-family="Impact" font-size="68" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 300 and Label/DisplayWidth = 400" >
<image height="300" width="400" >
<line thickness="2" x-from="0" x-to="400" y-from="236" y-to="236" >
</line>
<field height="90" width="382" x="9" y="10" >
<text font-family="Tahoma" font-size="24" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="18" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="122" width="350" x="40" y="100" >
<text align="right" font-family="Impact" font-size="100" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="320" y="248" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="320" y="266" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="260" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="282" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 800 and Label/DisplayWidth = 480" >
<image height="800" width="480" >
<line thickness="2" x-from="0" x-to="480" y-from="700" y-to="700" >
</line>
<field height="400" width="460" x="10" y="10" >
<text font-family="Tahoma" font-size="48" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="28" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="200" width="460" x="10" y="480" >
<text align="right" font-family="Impact" font-size="120" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="728" >
<text align="right" font-family="Verdana" font-size="26" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="760" >
<text align="right" font-family="Tahoma" font-size="26" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="758" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="780" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

## Dynamic template using default record - 4.41" (Record)

<article articleNumber="9000275639319" >
<field key="pricePerUnit" value="4.98" >
</field>
<field key="unit" value="1 kg" >
</field>
<field key="price" value="2.49" >
</field>
<field key="description" value="Dose 500 g" >
</field>
<field key="name" value="Chili con Carne" >
</field>
</article>

## Generated Image

## Dynamic template using default record - 4.41"

This example is based on a dynamic template and the Red bull record. The image size depends on the label type.

- Template: templates/default.xsl
- Record: records/red-bull.xml

## Dynamic template using default record - 4.41" (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<xsl:choose>
<xsl:when test="Label/DisplayHeight = 176 and Label/DisplayWidth = 264" >
<image height="176" width="264" >
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
<field height="36" width="245" x="9" y="10" >
<text font-family="Tahoma" font-size="14" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="47" >
<text align="right" font-family="Impact" font-size="68" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 300 and Label/DisplayWidth = 400" >
<image height="300" width="400" >
<line thickness="2" x-from="0" x-to="400" y-from="236" y-to="236" >
</line>
<field height="90" width="382" x="9" y="10" >
<text font-family="Tahoma" font-size="24" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="18" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="122" width="350" x="40" y="100" >
<text align="right" font-family="Impact" font-size="100" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="320" y="248" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="320" y="266" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="260" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="282" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 800 and Label/DisplayWidth = 480" >
<image height="800" width="480" >
<line thickness="2" x-from="0" x-to="480" y-from="700" y-to="700" >
</line>
<field height="400" width="460" x="10" y="10" >
<text font-family="Tahoma" font-size="48" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="28" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="200" width="460" x="10" y="480" >
<text align="right" font-family="Impact" font-size="120" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="728" >
<text align="right" font-family="Verdana" font-size="26" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="760" >
<text align="right" font-family="Tahoma" font-size="26" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="758" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="780" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

## Dynamic template using default record - 4.41" (Record)

<article articleNumber="9002490100070" >
<field key="pricePerUnit" value="5.56" >
</field>
<field key="unit" value="1 l" >
</field>
<field key="price" value="1.39" >
</field>
<field key="description" value="Dose 250 ml" >
</field>
<field key="name" value="Red Bull" >
</field>
<field key="sale" value="1" >
</field>
</article>

## Generated Image

## Dynamic template using default record - 4.41"

This example is based on a dynamic template and the Voeslauer record. The image size depends on the label type.

- Template: templates/default.xsl
- Record: records/voeslauer.xml

## Dynamic template using default record - 4.41" (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<xsl:choose>
<xsl:when test="Label/DisplayHeight = 176 and Label/DisplayWidth = 264" >
<image height="176" width="264" >
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
<field height="36" width="245" x="9" y="10" >
<text font-family="Tahoma" font-size="14" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="47" >
<text align="right" font-family="Impact" font-size="68" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 300 and Label/DisplayWidth = 400" >
<image height="300" width="400" >
<line thickness="2" x-from="0" x-to="400" y-from="236" y-to="236" >
</line>
<field height="90" width="382" x="9" y="10" >
<text font-family="Tahoma" font-size="24" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="18" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="122" width="350" x="40" y="100" >
<text align="right" font-family="Impact" font-size="100" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="14" width="70" x="320" y="248" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="24" width="70" x="320" y="266" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="260" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="282" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
<xsl:when test="Label/DisplayHeight = 800 and Label/DisplayWidth = 480" >
<image height="800" width="480" >
<line thickness="2" x-from="0" x-to="480" y-from="700" y-to="700" >
</line>
<field height="400" width="460" x="10" y="10" >
<text font-family="Tahoma" font-size="48" >
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<text font-family="Tahoma" font-size="28" >
<br>
</br>
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
</field>
<field height="200" width="460" x="10" y="480" >
<text align="right" font-family="Impact" font-size="120" >
<xsl:value-of select="translate(article/field[@key='price']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="728" >
<text align="right" font-family="Verdana" font-size="26" >
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
</text>
</field>
<field height="32" width="100" x="370" y="760" >
<text align="right" font-family="Tahoma" font-size="26" >
<xsl:value-of select="translate(article/field[@key='pricePerUnit']/@value, '.', ',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="20" width="140" x="10" y="758" >
<barcode autoscale="false" humanReadableEnabled="false" type="ean13" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="140" x="10" y="780" >
<text align="center" font-family="Tahoma" font-size="10" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

## Dynamic template using default record - 4.41" (Record)

<article articleNumber="9009700145104" >
<field key="pricePerUnit" value="0.35" >
</field>
<field key="unit" value="1 l" >
</field>
<field key="price" value="0.35" >
</field>
<field key="description" value="Vöslauer prickelnd, 1 l PET" >
</field>
<field key="name" value="Vöslauer Mineralwasser" >
</field>
</article>

## Generated Image

## Custom Record 4.41" Example With List

A 4.41" example using a custom record representing elements in a floating list

- Template: templates/custom2.xsl
- Record: records/coolpix.xml

## Custom Record 4.41" Example With List (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<xsl:variable name="price" >
<xsl:value-of select="translate(Article/Price,'.','')" >
</xsl:value-of>
</xsl:variable>
<xsl:variable name="maxElements" select="7" >
</xsl:variable>
<xsl:variable name="propertiesCount" >
<xsl:choose>
<xsl:when test="Article/Properties/Field[1] != ''" >
<xsl:value-of select="count(Article/Properties/Field)" >
</xsl:value-of>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="specificationsCount" >
<xsl:choose>
<xsl:when test="Article/Specification/Field[1] != ''" >
<xsl:value-of select="count(Article/Specification/Field)" >
</xsl:value-of>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="totalCount" select="$propertiesCount + $specificationsCount" >
</xsl:variable>
<image height="300" width="400" >
<field height="20" width="400" x="0" y="8" >
<text align="center" font-family="Tahoma" font-size="14" font-weight="bold" text-decoration="underline" >
<xsl:value-of select="Article/Category" >
</xsl:value-of>
</text>
</field>
<field height="27" width="400" x="0" y="28" >
<text align="center" font-family="Verdana" font-size="22" font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="Article/Manufacturer" >
</xsl:value-of>
</utils>
</text>
</field>
<field height="48" width="390" x="5" y="54" >
<text align="center" font-family="Verdana" font-size="18" >
<xsl:value-of select="Article/Name" >
</xsl:value-of>
</text>
</field>
<field height="80" width="390" x="5" y="103" >
<text align="center" font-family="Tahoma" font-size="15,13" >
<ul float="true" type="disc" >
<xsl:if test="Article/Properties/Field[1] != ''" >
<xsl:for-each select="Article/Properties/Field" >
<li>
<xsl:value-of select="." >
</xsl:value-of>
</li>
</xsl:for-each>
</xsl:if>
<xsl:if test="Article/Specification/Field[1] != ''" >
<xsl:for-each select="Article/Specification/Field" >
<li>
<xsl:value-of select="." >
</xsl:value-of>
</li>
</xsl:for-each>
</xsl:if>
</ul>
</text>
</field>
<xsl:choose>
<xsl:when test="substring-after($price,',') = '00'" >
<field height="87" width="390" x="5" y="185" >
<text align="right" font-family="Tahoma" font-size="80" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:when>
<xsl:otherwise>
<field height="97" width="335" x="5" y="185" >
<text align="right" font-family="Tahoma" font-size="80" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
<field align="left" height="87" width="65" x="330" y="190" >
<text font-family="Tahoma" font-size="40" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-after($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:otherwise>
</xsl:choose>
<field height="10" width="98" x="6" y="287" >
<barcode humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Article/ArticleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="14" width="60" x="110" y="286" >
<text font-family="Tahoma" font-size="12" >
<xsl:value-of select="Article/ArticleNumber" >
</xsl:value-of>
</text>
</field>
<field align="right" height="10" width="180" x="212" y="287" >
<barcode humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Label/Id" >
</xsl:value-of>
</barcode>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Custom Record 4.41" Example With List (Record)

<Article>
<ArticleNumber>
1183821
</ArticleNumber>
<Name>
Coolpix S9200 Silber
</Name>
<Manufacturer>
Nikon
</Manufacturer>
<Category>
Digitalkamera
</Category>
<Price>
129,90
</Price>
<Specification>
<Field>
Fotoauflösung: 16 Megapixel max.
</Field>
<Field>
Zoom-Bereich: 25 bis 450 mm
</Field>
<Field>
Speichermedium: SD/SDHC/SDXC
</Field>
<Field>
Mögliche Dateiformate: JPEG, MOV, MPEG4
</Field>
<Field>
Videoauflösung: 1980 x 1080 Pixel
</Field>
<Field>
Zoomfaktor: 18-fach
</Field>
<Field>
optischer Bildstabilisator
</Field>
<Field>
Lichtstärke: F 1:3,5 bis 5,9
</Field>
<Field>
Lichtempfindlichkeit: 3200 ISO
</Field>
</Specification>
<Packaging>
<Item>
Trageschlaufe
</Item>
<Item>
USB-Kabel
</Item>
<Item>
Netzadapter
</Item>
</Packaging>
<Accessories>
<Item>
Akku EN-EL12
</Item>
<Item>
SDHC-Karte
</Item>
</Accessories>
</Article>

## Generated Image

## Custom Record 4.41" Example

A 4.41" example using a custom record

- Template: templates/custom4.xsl
- Record: records/valensina.xml

## Custom Record 4.41" Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="130" width="380" x="10" y="10" >
<text font-family="Tahoma" font-size="30" >
<xsl:value-of select="Article/Name" >
</xsl:value-of>
</text>
<text font-family="Tahoma" font-size="22" padding-top="10" >
<xsl:value-of select="Article/Description" >
</xsl:value-of>
</text>
</field>
<field height="80" width="170" x="10" y="155" >
<text font-family="Tahoma" font-size="22" padding-top="10" >
<xsl:value-of select="Article/Unit" >
</xsl:value-of>
</text>
</field>
<field height="171" width="170" x="135" y="129" >
<text align="right" font-family="Haettenschweiler" font-size="160" >
<xsl:value-of select="substring-before(Article/Price,',')" >
</xsl:value-of>
</text>
</field>
<field height="130" width="115" x="285" y="140" >
<text font-family="Haettenschweiler" font-size="115" >
<xsl:value-of select="substring-after(Article/Price,',')" >
</xsl:value-of>
</text>
</field>
<field align="center" height="30" width="120" x="10" y="240" >
<barcode humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Article/@number" >
</xsl:value-of>
</barcode>
</field>
<field height="13" width="120" x="10" y="275" >
<text align="center" font-family="Tahoma" font-size="11" >
<xsl:value-of select="Article/@number" >
</xsl:value-of>
<xsl:value-of select="Task/CurrentDate" >
</xsl:value-of>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Custom Record 4.41" Example (Record)

<Article number="1229517" >
<Name>
Valensina Saftorangen
</Name>
<Description>
Deklaration lt. Etikett
</Description>
<Unit>
1-Kilogramm- Netz
</Unit>
<Price>
2,49
</Price>
</Article>

## Generated Image