# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## 2.7" server level 3 record example - Coca Cola

A 2.7" template for standard server level 3 records using Coca-Cola record

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

## 2.7" server level 3 record example - Coca Cola (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image font-family="Arial" height="176" width="264" >
<line thickness="5" x-from="0" x-to="264" y-from="2" y-to="2" >
</line>
<field height="81" width="175" x="5" y="10" >
<label condense="1.0,0.8,0.6,0.5" font-size="34,33,32,30,28,26,24,22,20" font-weight="bold" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</label>
<text condense="1.0,0.8,0.6,0.5" font-size="20,19,18,16,12" padding-top="5" >
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</text>
<text condense="1.0,0.8,0.6,0.5" font-size="12" padding-top="3" >
<ul float="true" type="disc" >
<li>
<span font-weight="bold" >
Einheit:
</span>
<xsl:value-of select="article/field[@key='unit']/@value" >
</xsl:value-of>
<xsl:value-of select="article/field[@key='pricePerUnit']/@value" >
</xsl:value-of>
</li>
</ul>
</text>
</field>
<field height="65" width="65" x="189" y="10" >
<barcode autoscale="true" type="qr" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</barcode>
</field>
<line thickness="5" x-from="0" x-to="264" y-from="92" y-to="92" >
</line>
<field height="79" valign="center" width="264" x="0" y="95" >
<label align="center" condense="1.0,0.8,0.6,0.5" font-size="70,68,66,64,62,60,58,56,54,52,50,48,46,44,42,40,38" font-style="italic" font-weight="bold" >
€
<xsl:value-of select="article/field[@key='price']/@value" >
</xsl:value-of>
</label>
</field>
<line thickness="5" x-from="0" x-to="264" y-from="173" y-to="173" >
</line>
</image>
</xsl:template>
</xsl:stylesheet>

## 2.7" server level 3 record example - Coca Cola (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