# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## Dynamic Sale/No Sale Image Rendering

This example shows how dynamic approaches can be applied to render different images for sale/no sale products

- Template: templates/sale.xsl
- Record: records/example-nosale.xml

## Dynamic Sale/No Sale Image Rendering (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<image height="176" width="264" >
<xsl:choose>
<xsl:when test="article/field[@key='Sale']/@value='1'" >
<rect color="black" height="126" width="264" x="0" y="0" >
</rect>
<field height="37" width="90" x="160" y="10" >
<text color="white" font-family="Comic Sans MS" font-size="26" font-weight="bold" >
Aktion!
</text>
</field>
</xsl:when>
<xsl:otherwise>
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
</xsl:otherwise>
</xsl:choose>
<field height="40" width="150" x="9" y="10" >
<xsl:choose>
<xsl:when test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="width" >
150
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="width" >
240
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<text font-family="Tahoma" font-size="14" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='ProductDescription']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<label font-family="Tahoma" font-size="16" padding-top="3" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:value-of select="article/field[@key='ProductName']/@value" >
</xsl:value-of>
</label>
</field>
<field height="20" width="50" x="10" y="100" >
<text align="left" font-family="Verdana" font-size="13" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:value-of select="article/field[@key='TotalAmount']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="50" >
<text align="right" condense="1,0.8,0.6,0.4" font-family="Impact" font-size="68,64,60,58,56" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:if test="article/field[@key='MainPrice']/@value!=''" >
<xsl:value-of select="floor(number(article/field[@key='MainPrice']/@value) div 100)" >
</xsl:value-of>
<xsl:value-of select="number(article/field[@key='MainPrice']/@value) mod 100" >
</xsl:value-of>
</xsl:if>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:if test="article/field[@key='UsedUnit']/@value!='' and article/field[@key='UsedUnit']/@value!='0'" >
<span>
per
</span>
<xsl:if test="article/field[@key='UsedDimension']/@value='2'" >
<span>
100
</span>
</xsl:if>
</xsl:if>
<span>
<xsl:choose>
<xsl:when test="article/field[@key='UsedUnit']/@value='1'" >
g
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='2'" >
kg
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='3'" >
l
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='4'" >
ml
</xsl:when>
</xsl:choose>
</span>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:if test="article/field[@key='ReferencePrice']/@value!=''" >
<xsl:value-of select="floor(number(article/field[@key='ReferencePrice']/@value) div 100)" >
</xsl:value-of>
<xsl:value-of select="number(article/field[@key='ReferencePrice']/@value) mod 100" >
</xsl:value-of>
</xsl:if>
</text>
</field>
<field align="center" height="20" width="160" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Label/Id" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="160" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<span>
<xsl:value-of select="number(article/field[@key='EAN']/@value)" >
</xsl:value-of>
</span>
<span>
<xsl:value-of select="article/field[@key='Location']/@value" >
</xsl:value-of>
</span>
<xsl:if test="article/field[@key='Clearance']/@value='1'" >
<span>
</span>
<span font-weight="bold" >
R
</span>
</xsl:if>
<span>
</span>
<span>
<xsl:value-of select="article/field[@key='UpdateTime']/@value" >
</xsl:value-of>
</span>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Dynamic Sale/No Sale Image Rendering (Record)

<article>
<field key="LineID" value="1234567890" >
</field>
<field key="Version" value="1" >
</field>
<field key="Operator" value="1" >
</field>
<field key="CostCenter" value="1" >
</field>
<field key="NAN" value="0000000412342" >
</field>
<field key="EAN" value="3330001299874" >
</field>
<field key="MainPrice" value="999" >
</field>
<field key="UsedUnit" value="1" >
</field>
<field key="UsedDimension" value="2" >
</field>
<field key="ReferencePrice" value="1998" >
</field>
<field key="ProductDescription" value="Extra big schoko" >
</field>
<field key="ProductName" value="Corny" >
</field>
<field key="TotalAmount" value="50 g" >
</field>
<field key="Sale" value="0" >
</field>
<field key="Clearance" value="1" >
</field>
<field key="Location" value="08L03b" >
</field>
<field key="UpdateTime" value="135200" >
</field>
<field key="TagSize" value="1" >
</field>
<field key="MultiLocation" value="" >
</field>
<field key="Reserved" value="" >
</field>
</article>

## Generated Image

## Dynamic Sale/No Sale Image Rendering

This example shows how dynamic approaches can be applied to render different images for sale/no sale products

- Template: templates/sale.xsl
- Record: records/example-sale.xml

## Dynamic Sale/No Sale Image Rendering (Template)

<xsl:stylesheet version="1.0" >
<xsl:template match="Record" >
<image height="176" width="264" >
<xsl:choose>
<xsl:when test="article/field[@key='Sale']/@value='1'" >
<rect color="black" height="126" width="264" x="0" y="0" >
</rect>
<field height="37" width="90" x="160" y="10" >
<text color="white" font-family="Comic Sans MS" font-size="26" font-weight="bold" >
Aktion!
</text>
</field>
</xsl:when>
<xsl:otherwise>
<line thickness="2" x-from="0" x-to="264" y-from="126" y-to="126" >
</line>
</xsl:otherwise>
</xsl:choose>
<field height="40" width="150" x="9" y="10" >
<xsl:choose>
<xsl:when test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="width" >
150
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="width" >
240
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<text font-family="Tahoma" font-size="14" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<span font-weight="bold" >
<utils method="toUpperCase" >
<xsl:value-of select="article/field[@key='ProductDescription']/@value" >
</xsl:value-of>
</utils>
</span>
</text>
<label font-family="Tahoma" font-size="16" padding-top="3" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:value-of select="article/field[@key='ProductName']/@value" >
</xsl:value-of>
</label>
</field>
<field height="20" width="50" x="10" y="100" >
<text align="left" font-family="Verdana" font-size="13" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:value-of select="article/field[@key='TotalAmount']/@value" >
</xsl:value-of>
</text>
</field>
<field height="83" width="190" x="60" y="50" >
<text align="right" condense="1,0.8,0.6,0.4" font-family="Impact" font-size="68,64,60,58,56" >
<xsl:if test="article/field[@key='Sale']/@value='1'" >
<xsl:attribute name="color" >
white
</xsl:attribute>
</xsl:if>
<xsl:if test="article/field[@key='MainPrice']/@value!=''" >
<xsl:value-of select="floor(number(article/field[@key='MainPrice']/@value) div 100)" >
</xsl:value-of>
<xsl:value-of select="number(article/field[@key='MainPrice']/@value) mod 100" >
</xsl:value-of>
</xsl:if>
</text>
</field>
<field height="14" width="70" x="180" y="131" >
<text align="right" font-family="Verdana" font-size="11" >
<xsl:if test="article/field[@key='UsedUnit']/@value!='' and article/field[@key='UsedUnit']/@value!='0'" >
<span>
per
</span>
<xsl:if test="article/field[@key='UsedDimension']/@value='2'" >
<span>
100
</span>
</xsl:if>
</xsl:if>
<span>
<xsl:choose>
<xsl:when test="article/field[@key='UsedUnit']/@value='1'" >
g
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='2'" >
kg
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='3'" >
l
</xsl:when>
<xsl:when test="article/field[@key='UsedUnit']/@value='4'" >
ml
</xsl:when>
</xsl:choose>
</span>
</text>
</field>
<field height="24" width="70" x="180" y="146" >
<text align="right" font-family="Tahoma" font-size="20" >
<xsl:if test="article/field[@key='ReferencePrice']/@value!=''" >
<xsl:value-of select="floor(number(article/field[@key='ReferencePrice']/@value) div 100)" >
</xsl:value-of>
<xsl:value-of select="number(article/field[@key='ReferencePrice']/@value) mod 100" >
</xsl:value-of>
</xsl:if>
</text>
</field>
<field align="center" height="20" width="160" x="10" y="136" >
<barcode autoscale="false" humanReadableEnabled="false" type="code128" >
<xsl:value-of select="Label/Id" >
</xsl:value-of>
</barcode>
</field>
<field height="12" width="160" x="10" y="158" >
<text align="center" font-family="Tahoma" font-size="10" >
<span>
<xsl:value-of select="number(article/field[@key='EAN']/@value)" >
</xsl:value-of>
</span>
<span>
<xsl:value-of select="article/field[@key='Location']/@value" >
</xsl:value-of>
</span>
<xsl:if test="article/field[@key='Clearance']/@value='1'" >
<span>
</span>
<span font-weight="bold" >
R
</span>
</xsl:if>
<span>
</span>
<span>
<xsl:value-of select="article/field[@key='UpdateTime']/@value" >
</xsl:value-of>
</span>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Dynamic Sale/No Sale Image Rendering (Record)

<article>
<field key="LineID" value="1234567890" >
</field>
<field key="Version" value="1" >
</field>
<field key="Operator" value="1" >
</field>
<field key="CostCenter" value="1" >
</field>
<field key="NAN" value="0000000412342" >
</field>
<field key="EAN" value="3330001299874" >
</field>
<field key="MainPrice" value="799" >
</field>
<field key="UsedUnit" value="1" >
</field>
<field key="UsedDimension" value="2" >
</field>
<field key="ReferencePrice" value="1598" >
</field>
<field key="ProductDescription" value="Extra big schoko" >
</field>
<field key="ProductName" value="Corny" >
</field>
<field key="TotalAmount" value="50 g" >
</field>
<field key="Sale" value="1" >
</field>
<field key="Clearance" value="0" >
</field>
<field key="Location" value="08L03b" >
</field>
<field key="UpdateTime" value="135200" >
</field>
<field key="TagSize" value="1" >
</field>
<field key="MultiLocation" value="" >
</field>
<field key="Reserved" value="" >
</field>
</article>

## Generated Image

## Dynamic template using default record - 2.7"

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

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

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

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

## 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

## 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