# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## 2.7" server level 3 record example - Chili con carne

A 2.7" template for standard server level 3 records with with raised decimal place and rotated barcode, using Chili con carne record

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

## 2.7" server level 3 record example - Chili con carne (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<xsl:variable name="price" >
<xsl:value-of select="article/field[@key='price']/@value" >
</xsl:value-of>
</xsl:variable>
<xsl:variable name="name" >
<xsl:value-of select="article/field[@key='name']/@value" >
</xsl:value-of>
</xsl:variable>
<xsl:variable name="description" >
<xsl:value-of select="article/field[@key='description']/@value" >
</xsl:value-of>
</xsl:variable>
<image height="176" width="264" font-family="Verdana" >
<field height="80" width="225" x="5" y="7" >
<text font-size="16" font-weight="bold" condense="1.0, 0.9, 0.8, 0.7" line-spacing="-1" padding-bottom="5" >
<xsl:value-of select="$name" >
</xsl:value-of>
</text>
<text font-size="14" font-weight="normal" condense="1.0, 0.9, 0.8, 0.7" line-spacing="-1" padding-bottom="5" >
<xsl:value-of select="$description" >
</xsl:value-of>
</text>
</field>
<field height="100" width="140" x="0" y="75" >
<text align="right" font-family="Lucida Sans" font-size="80" font-weight="bold" condense="1.0" >
<xsl:value-of select="substring-before($price, '.')" >
</xsl:value-of>
</text>
</field>
<field height="80" width="20" x="135" y="95" >
<text align="center" font-family="Lucida Sans" font-size="60" font-weight="bold" condense="1.0" >
.
</text>
</field>
<field height="90" width="80" x="135" y="79" >
<label align="left" font-family="Lucida Sans" font-size="52" font-weight="bold" condense="0.9" >
<xsl:value-of select="substring-after($price, '.')" >
</xsl:value-of>
</label>
</field>
<field align="center" valign="center" rotation="270" height="25" width="150" x="230" y="17" >
<barcode scale="1" humanReadableEnabled="false" type="code128" >
1234567890ABCD
</barcode>
</field>
<field height="14" width="100" y="160" x="5" >
<label align="left" font-size="10" font-weight="normal" >
<xsl:value-of select="article/@articleNumber" >
</xsl:value-of>
</label>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## 2.7" server level 3 record example - Chili con carne (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