2.7" server level 3 record example - Vöslauer
A 2.7" template for standard server level 3 records with with raised decimal place and rotated barcode, using Vöslauer record
- Template: templates/example13.xsl
- Record: records/voeslauer.xml
2.7" server level 3 record example - Vöslauer (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 - Vöslauer (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>