# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## Advanced Drawing Example

This example shows the usage drawing elements like triangles, ellipses and polygons.

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

## Advanced Drawing Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="800" rotation="270" width="480" >
<polygon border="4" fill="false" points="104,248 160,279 208,303 250,322 267,314 256,297 235,284 212,270 217,250 251,243 285,241 332,247 367,248 392,248 420,245 428,239 425,231 411,229 385,228 368,228 339,224 306,219 298,209 321,203 357,198 387,191 431,185 443,176 433,165 409,167 372,174 344,177 293,186 293,180 321,170 351,157 406,140 408,136 404,128 393,125 377,128 328,144 311,149 269,161 265,156 279,144 313,126 329,116 328,108 311,107 286,118 268,125 231,145 210,150 182,153 160,157 132,162 118,168 109,178" >
</polygon>
<triangle border="5" x1="50" x2="200" x3="400" y1="750" y2="550" y3="750" >
</triangle>
<ellipse height="150" width="270" x="180" y="400" >
</ellipse>
<ellipse border="10" fill="false" height="100" width="100" x="30" y="400" >
</ellipse>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Rounded Rectangle/Field Example

This exapmle shows the usage of rounded corners in rectangles and fields with text.

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

## Rounded Rectangle/Field Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="800" width="480" >
<field border="8" corner-radius="25" height="200" rounded-corners="TOP_LEFT,BOTTOM_RIGHT" valign="center" width="300" x="50" y="50" >
<label align="center" font-size="40" >
Test Label
</label>
</field>
<field border="2" corner-radius="10" height="80" rounded-corners="TOP_RIGHT,TOP_LEFT,BOTTOM_RIGHT" width="200" x="10" y="300" >
<text align="center" font-size="20" >
Multiple lines inside a rounded field
</text>
</field>
<rect corner-radius="50" height="100" rounded-corners="TOP_RIGHT,TOP_LEFT,BOTTOM_RIGHT,BOTTOM_LEFT" width="250" x="20" y="400" >
</rect>
<rect border="5" corner-radius="70" fill="false" height="150" rounded-corners="TOP_RIGHT" width="300" x="100" y="600" >
</rect>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image

## Dynamic template using default record - 7.4"

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 - 7.4" (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 - 7.4" (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 - 7.4"

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 - 7.4" (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 - 7.4" (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 - 7.4"

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 - 7.4" (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 - 7.4" (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 - 7.4"

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 - 7.4" (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 - 7.4" (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 7.4" Example

A 7.4" example using a custom record

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

## Custom Record 7.4" Example (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="maxProperties" select="8" >
</xsl:variable>
<xsl:variable name="maxSpecifications" select="7" >
</xsl:variable>
<image height="800" width="480" >
<field height="22" width="480" x="0" y="30" >
<text align="center" font-family="Verdana" font-size="18" text-decoration="underline" >
<xsl:value-of select="Article/Category" >
</xsl:value-of>
</text>
</field>
<field height="36" width="480" x="0" y="65" >
<text align="center" font-family="Verdana" font-size="30" font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="Article/Manufacturer" >
</xsl:value-of>
</utils>
</text>
</field>
<field height="60" width="450" x="15" y="110" >
<text align="center" font-family="Verdana" font-size="24" >
<xsl:value-of select="Article/Name" >
</xsl:value-of>
</text>
</field>
<field height="400" width="450" x="15" y="175" >
<text align="center" font-family="Tahoma" font-size="15" font-weight="bold" >
<ul spacing="0" type="" >
<xsl:for-each select="Article/Properties/Field" >
<li>
<xsl:value-of select="." >
</xsl:value-of>
</li>
</xsl:for-each>
</ul>
</text>
<text align="left" font-family="Tahoma" font-size="18" font-weight="normal" padding-left="5" padding-top="20" >
<ul spacing="0" type="" >
<xsl:for-each select="Article/Specification/Field" >
<li>
<xsl:value-of select="." >
</xsl:value-of>
</li>
</xsl:for-each>
</ul>
</text>
</field>
<xsl:choose>
<xsl:when test="number(substring-before($price, ',')) < 100" >
<xsl:choose>
<xsl:when test="substring-after($price,',') = '00'" >
<field height="205" width="410" x="10" y="570" >
<text align="right" font-family="Tahoma" font-size="170" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:when>
<xsl:otherwise>
<field height="205" width="330" x="10" y="570" >
<text align="right" font-family="Tahoma" font-size="170" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
<field height="157" width="120" x="320" y="570" >
<text font-family="Tahoma" font-size="85" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-after($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="number(substring-before($price, ',')) < 1000" >
<xsl:choose>
<xsl:when test="substring-after($price,',') = '00'" >
<field height="157" width="415" x="10" y="600" >
<text align="right" font-family="Tahoma" font-size="130" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:when>
<xsl:otherwise>
<field height="157" width="340" x="10" y="600" >
<text align="right" font-family="Tahoma" font-size="130" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
<field height="157" width="100" x="340" y="600" >
<text font-family="Tahoma" font-size="70" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-after($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="number(substring-before($price, ',')) < 10000" >
<xsl:choose>
<xsl:when test="substring-after($price,',') = '00'" >
<field height="157" width="435" x="10" y="600" >
<text align="right" font-family="Tahoma" font-size="110" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:when>
<xsl:otherwise>
<field height="157" width="370" x="00" y="600" >
<text align="right" font-family="Tahoma" font-size="110" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-before($price,',')" >
</xsl:value-of>
</text>
</field>
<field height="157" width="100" x="360" y="600" >
<text font-family="Tahoma" font-size="55" font-style="italic" font-weight="bold" >
<xsl:value-of select="substring-after($price,',')" >
</xsl:value-of>
</text>
</field>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
<field align="left" height="12" width="100" x="15" y="780" >
<barcode humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Article/ArticleNumber" >
</xsl:value-of>
</barcode>
</field>
<field height="17" width="80" x="120" y="778" >
<text font-family="Tahoma" font-size="14" >
<xsl:value-of select="Article/ArticleNumber" >
</xsl:value-of>
</text>
</field>
<field align="right" height="12" width="150" x="315" y="780" >
<barcode humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Label/Id" >
</xsl:value-of>
</barcode>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Custom Record 7.4" Example (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

### Execution Status

Execution Problem
Textfield is empty (max. width: 450, max. height: 400)